[alsa-devel] what is the difference between SNDRV_PCM_FMTBIT_S24_LE and SNDRV_PCM_FMTBIT_S24_3LE

Clemens Ladisch clemens at ladisch.de
Thu Apr 11 11:00:44 CEST 2013


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


More information about the Alsa-devel mailing list