[alsa-devel] what is the difference between SNDRV_PCM_FMTBIT_S24_LE and SNDRV_PCM_FMTBIT_S24_3LE
11 Apr
2013
11 Apr
'13
10:55 a.m.
There are two definitions In the file include/sound/asound.h SNDRV_PCM_FORMAT_S24_3LE and SNDRV_PCM_FORMAT_S24_LE.
What is the difference between them?
Thanks a lot.
zw
11 Apr
11 Apr
11 a.m.
New subject: [alsa-devel] what is the difference between SNDRV_PCM_FMTBIT_S24_LE and SNDRV_PCM_FMTBIT_S24_3LE
Zhang wei wrote:
SNDRV_PCM_FORMAT_S24_3LE and SNDRV_PCM_FORMAT_S24_LE.
What is the difference between them?
SNDRV_PCM_FORMAT_S24_3LE stores the 24 in three bytes, and is used only for USB.
SNDRV_PCM_FORMAT_S24_LE stores the 24 bits in the lower bits of a 32-bit word, and is almost never used.
Most devices that support 24 bits use SNDRV_PCM_FORMAT_S32_LE, which stores the sample's bits in the upper bits of a 32-bit word.
Regards, Clemens
4273
Age (days ago)
4273
Last active (days ago)
1 comments
2 participants
participants (2)
-
Clemens Ladisch
-
Zhang wei