Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Munoz <carlos@kenati.com>
To: alsa-devel@lists.sourceforge.net
Subject: buffer_bytes not multiple of period_bytes
Date: Wed, 19 Apr 2006 18:54:38 -0700	[thread overview]
Message-ID: <4446E9DE.4080709@kenati.com> (raw)

Hi all,

I just noticed that alsa doesn't allocate a buffer size that is a 
multiple of the period size. For example when aplay plays a 8000 sample 
rate wav file, the driver gets the following:

    buf_bytes=8000
    period_bytes=1024

How am I going to dma the last period ?

I verified that the 16000 sample rate also has the same problem. 
However, when the sample rate is 44100 the buffer size is a perfect 
multiple of the period size.

Thanks,


Carlos Munoz


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

             reply	other threads:[~2006-04-20  1:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20  1:54 Carlos Munoz [this message]
2006-04-20  7:13 ` buffer_bytes not multiple of period_bytes Jaroslav Kysela
2006-04-20  7:17 ` Giuliano Pochini
2006-04-20 17:50   ` Carlos Munoz

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=4446E9DE.4080709@kenati.com \
    --to=carlos@kenati.com \
    --cc=alsa-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox