Posts Tagged ‘endian’

Don’t record “noise” with your Audiophile USB

Tuesday, March 25th, 2008

If you load the snd-usb-audio without option with the current (2.6.24) linux kernel, your Audiophile USB will send you a nice “noise”.

$ arecord -vvv -D hw:2,1 -c2 -t raw -r48000 -fS24_3BE /tmp/test.raw
Recording raw data '/tmp/test.raw' :
Signed 24 bit Big Endian in 3bytes, Rate 48000 Hz, Stereo
Hardware PCM card 2 'Audiophile USB (tm)' device 1 subdevice 0
Its setup is:
[...]
Max peak (12000 samples): 0x007ff202 #################### 99%

But if you take look, it isn’t a noise, it’s a swapped endian stream.

(more…)