About the data word format of PCM
Dear all,
How is the arrangement in one 32-bit word for either Stereo,SNDRV_PCM_FMTBIT_S16_LE or SNDRV_PCM_FMTBIT_S24_LE? And is there any way to change such as Left and right channel's bit position or the signed bit if necessary? Thanks a lot!~
Best Regards,
Quoted 2 lines · On 03-Apr-2006 boku wrote:
How is the arrangement in one 32-bit word for either Stereo,
SNDRV_PCM_FMTBIT_S16_LE
This is 16 bits. There is no 16bits data in 32bits format AFAIK.
Quoted 1 line
or
SNDRV_PCM_FMTBIT_S24_LE?
This is 24bits right aligned in 32bits, that is XXXXX:bits0-7:bits8-15:bits16-23
Quoted 3 lines
And is there any way to
change such as Left and right channel's bit position or the signed bit if necessary? Thanks a lot!~
Change what ? The format depends on the card.
--
Giuliano.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642