
28 Mar
2017
28 Mar
'17
5:43 p.m.
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