How to list arecords avaible formats

Posted by Puggan Se on Ask Ubuntu See other posts from Ask Ubuntu or by Puggan Se
Published on 2012-10-02T09:32:20Z Indexed on 2012/10/02 9:49 UTC
Read the original article Hit count: 171

Filed under:
|

I built a tool that uses arecord, but now i noticed that it dosn't work on some computers, as the format isn't supported by that hardware, how can i see/list what formats thats supported?

Arecords man page says:

-f --format=FORMAT
Sample format
Recognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW A_LAW IMA_ADPCM MPEG GSM SPECIAL S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE
Some of these may not be available on selected hardware

© Ask Ubuntu or respective owner

Related posts about sound

Related posts about alsa