Commit graph

13 commits

Author SHA1 Message Date
Jaroslav Kysela
37447085c6 aplay: use stdint.h types instead u_int/u_short/u_char
Closes: https://github.com/alsa-project/alsa-utils/pull/234
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-10-17 13:45:42 +02:00
SASANO Takayoshi
613372dc7c Add OpenBSD support
- ERESTART not supported platform: use EINTR instead
- add include/os_compat.h, well-used OS specific definition
- copied include/bswap.h from alsa-lib

- EPIPE and ESTRPIPE are different usage, but currently
  EPIPE is used when ESTRPIPE is not defined.

  To fix this problem, assign ESPIPE instead.

Fixes: https://github.com/alsa-project/alsa-utils/pull/186
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-02-03 13:08:44 +01:00
Takashi Iwai
de61ec66fe aplay: Add the support for big-endian WAV format (RIFX)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-12-13 10:53:19 +01:00
Pawel MOLL
4bdb0adef1 Support for playing WAV files with "extensible format" header using aplay.
WAV files with more than 2 channels or with more than 16 bits per samples
can be saved with "extensible format" chunk
(see http://msdn2.microsoft.com/en-us/library/ms713496(VS.85).aspx).
For instance, sox, when converting data to 24- or 32-bits per sample format
uses this format, and aplay was unable to play such file. Now the problem
is solved :-)

Signed-off-by: Pawel MOLL <pawel.moll@st.com>
2008-03-06 17:34:21 +01:00
Andrew Paprocki
6f438b9b9a aplay/arecord - Add support for IEEE float 32-bit WAV files
This patch modifies aplay/arecord to support playing/capturing IEEE float
32-bit WAV files. Tested on HDA hardware in both stereo and multi-channel
modes. Added the WAV file constant for Dolby AC-3 S/PDIF passthrough to
formats.h for future use when AC-3 passthrough is better supported.

Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
2008-02-06 14:05:07 +01:00
Clemens Ladisch
72ae8b1e79 various bugfixes
- don't parse -X option because such an option doesn't exist
- allow argument for --sleep-min option
- fix handling of .voc magic string
- fix handling of .voc files on big-endian machines
- remove superfluous "size" parameter from check_wavefile_space macro
- reallocate buffer only if needed in check_wavefile_space
- fix playback of >2GB .wav files
- skip over padding bytes in .wav files
- fix memory leak when playing .voc silence blocks
- fix file length when recording >2GB .wav files
- fix recording of >4GB files
2004-09-13 07:04:53 +00:00
Jaroslav Kysela
abe718c7cf Corrected endian test 2001-08-22 11:00:07 +00:00
Jaroslav Kysela
8013b4b934 Recoded WAV file parser 2000-09-04 09:18:13 +00:00
Abramo Bagnara
5825302e03 Uros Bizjak <uros@kss-loka.si>:
- fixes compilation (format.voices -> format.channels)
- ntohl -> BE_INT for AU files
- recoded AU_MAGIC header for AU files
2000-06-01 11:37:43 +00:00
Abramo Bagnara
048c2000f8 Better .wav detection 2000-05-29 18:54:23 +00:00
Takashi Iwai
3b5c5b2268 - fix alsamixer bug which causes SEGFAULT when volume bar is changed.
- fix aplay for reading WAVE file properly even on big-endian machine.
2000-05-16 10:46:11 +00:00
Jaroslav Kysela
8773d373f0 Coding style... 1998-11-27 15:17:45 +00:00
Jaroslav Kysela
fbb20e85ec Initial revision 1998-08-13 15:43:39 +00:00