[alsa-devel] ALSA Overlay 24bit data 32bit slots
Clemens Ladisch
clemens at ladisch.de
Tue Mar 28 16:43:29 CEST 2017
Ed McNicholas wrote:
> I am interfacing with a dsp that we have programmed and there are only
> options for slot widths of 16 or 32 bits but we are using a 24 bit
> data format.
24-bit samples are typically handled by padding them to 32 bits and then
pretending they are 32 bits.
> When I record using
>
> arecord -v -f S24_LE -r 48000 -t wav -c4 /home/nyquist/test.wav
>
> I get garbage
S24_LE is a very unusual format (24 bits padded to 32 bit with a zero
byte as the most significant byte), and not supported by the .wav file
format. Try a raw file instead. And the normal format for 24-bit
samples would be S32_LE.
Regards,
Clemens
More information about the Alsa-devel
mailing list