[alsa-devel] S24_LE is 3 bytes ? in alsa-lib example pcm.c
clemens at ladisch.de
Thu Jul 10 11:23:10 CEST 2008
Norbert van Bolhuis wrote:
> as far as I know:
> sample format S24_LE is 24bit sample in 4 bytes
> sample format S24_3LE is 24bit sample in 3 bytes
> (why else have separate definitions), right ?
> In the ALSA-LIb example /test/pcm.c however
> there is no diff between the 2 sample formats.
That example program uses snd_pcm_format_width() although it should
have used snd_pcm_format_physical_width() when calculating memory
More information about the Alsa-devel