All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
Cc: alsa-user@lists.sourceforge.net, alsa-devel@alsa-project.org
Subject: Re: S24_LE is 3 bytes ? in alsa-lib example pcm.c
Date: Thu, 10 Jul 2008 11:23:10 +0200	[thread overview]
Message-ID: <4875D4FE.3000607@ladisch.de> (raw)
In-Reply-To: <4875C730.7080003@aimvalley.nl>

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 ?

Yes.

> In the ALSA-LIb example /test/pcm.c however
> (http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_8c-example.html)
> 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
buffer sizes.


Regards,
Clemens

  reply	other threads:[~2008-07-10  9:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10  8:24 S24_LE is 3 bytes ? in alsa-lib example pcm.c Norbert van Bolhuis
2008-07-10  9:23 ` Clemens Ladisch [this message]
2008-07-10 10:19   ` Jaroslav Kysela
2008-07-10 16:30     ` Takashi Iwai
2008-07-10 10:41       ` Jaroslav Kysela
2008-07-10 16:46         ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4875D4FE.3000607@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=alsa-user@lists.sourceforge.net \
    --cc=nvbolhuis@aimvalley.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.