Re: SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dustin@xxxxxxxxx wrote:
> >  What is the difference between SNDRV_PCM_FMTBIT_S24_LE and
> >  SNDRV_PCM_FMTBIT_S24_3LE?
> 
> The asound.h says S24_LE is stored in lower three bytes of four, whereas
> S24_3LE is stored in three bytes total.

To use a sample format with 24 bits stored in the upper three bytes of
four, use S32_LE.  In that case, you have to call
"snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24)" in the PCM open
callback to tell ALSA that some of the lower bits aren't used.


HTH
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux