Hi,

does anybody know any command line utility that would strip the additional bits from recordings? My software configuration doesn't support 24 bit recording (or is this a common ALSA problem?), but my sound hardware does and I would like to acquire all the bits. The only way to do this is the S32_LE format.

If I try S24_LE
> arecord -D plughw:0,1 -t wav -c 8 -f s24_le -r 48000 -d 1 -v /audiodata/test24.wav
Recording WAVE '/audiodata/test24.wav' : Signed 24 bit Little Endian, Rate 48000 Hz, Channels 8
Plug PCM: Linear conversion PCM (S32_LE)
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S24_LE
subformat : STD
channels : 8
rate : 48000
exact rate : 48000 (48000/1)
msbits : 32
^^^^^
---> the audio will be saved using 32 bits.


Someone would say why bother, but I must first transfer all the data ~900km away and then archive it (there will be many terabytes per year), so all the extra bytes are bad...

I suppose it wouldn't be a big task for an experienced programmer to write a c-program to do this, but I'm not of that kind. A pointer to a c-source would be great! Maybe I must take my Kernighan&Ritchie and start from the "Hello world"..

The system consists of ALSA 0.9.6 and an Apogee AD-8000 with a RME Digi96/8 PST.

Yours,
panu



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to