* SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE
@ 2007-07-23 18:44 Timur Tabi
2007-07-23 19:17 ` James Courtier-Dutton
2007-07-23 19:22 ` dustin
0 siblings, 2 replies; 4+ messages in thread
From: Timur Tabi @ 2007-07-23 18:44 UTC (permalink / raw)
To: ALSA devel
What is the difference between SNDRV_PCM_FMTBIT_S24_LE and SNDRV_PCM_FMTBIT_S24_3LE?
--
Timur Tabi
Linux Kernel Developer @ Freescale
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE
2007-07-23 18:44 SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE Timur Tabi
@ 2007-07-23 19:17 ` James Courtier-Dutton
2007-07-23 19:22 ` dustin
1 sibling, 0 replies; 4+ messages in thread
From: James Courtier-Dutton @ 2007-07-23 19:17 UTC (permalink / raw)
To: Timur Tabi; +Cc: ALSA devel
Timur Tabi wrote:
> What is the difference between SNDRV_PCM_FMTBIT_S24_LE and SNDRV_PCM_FMTBIT_S24_3LE?
>
SNDRV_PCM_FMTBIT_S24_LE is 24bit audio padded to fill 4 bytes.
SNDRV_PCM_FMTBIT_S24_3LE is 24bit audio with no padding, thus taking
only 3 types.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE
2007-07-23 18:44 SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE Timur Tabi
2007-07-23 19:17 ` James Courtier-Dutton
@ 2007-07-23 19:22 ` dustin
2007-07-24 7:03 ` Clemens Ladisch
1 sibling, 1 reply; 4+ messages in thread
From: dustin @ 2007-07-23 19:22 UTC (permalink / raw)
To: Timur Tabi; +Cc: ALSA devel
> ------------ Původní zpráva ------------
>
> ----------------------------------------
> 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.
Pavel.
>
> --
> Timur Tabi
> Linux Kernel Developer @ Freescale
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE
2007-07-23 19:22 ` dustin
@ 2007-07-24 7:03 ` Clemens Ladisch
0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2007-07-24 7:03 UTC (permalink / raw)
To: Timur Tabi; +Cc: ALSA devel
dustin@seznam.cz 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-24 7:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 18:44 SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE Timur Tabi
2007-07-23 19:17 ` James Courtier-Dutton
2007-07-23 19:22 ` dustin
2007-07-24 7:03 ` Clemens Ladisch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.