11 Apr
2013
11 Apr
'13
11 a.m.
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