From: Adrian McMenamin <adrian@mcmen.demon.co.uk>
To: Lee Revell <rlrevell@joe-job.com>
Cc: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@alsa-project.org
Subject: Re: PCM driver only plays tiny portion of clip
Date: Wed, 01 Mar 2006 20:28:46 +0000 [thread overview]
Message-ID: <1141244926.9233.32.camel@localhost.localdomain> (raw)
In-Reply-To: <1141243152.5860.197.camel@mindpipe>
On Wed, 2006-03-01 at 14:59 -0500, Lee Revell wrote:
> On Wed, 2006-03-01 at 19:40 +0000, Adrian McMenamin wrote:
> > On Wed, 2006-03-01 at 14:31 -0500, Lee Revell wrote:
> >
> > > > What happens next?
> > >
> > > The app(s) waiting to output audio (sleeping in poll() or write()) will
> > > be woken up and based on the value returned by the pointer callback
> > > above, informed that there is space in the buffer and how much space
> > > there is, and will then write the next chunk of frames, and go back to
> > > sleep. Then we go back to "Hardware triggers interrupt" above and the
> > > process repeats.
> >
> > But something in the alsa subsystem determines whether there is any
> > space before waking the app, yes?
> >
>
> Yes - the value returned by your pointer callback minus the last value
> returned by your pointer callback determines how much space is left. So
> if the app is waiting to write 512 frames, the pointer was 256 at the
> last interrupt, and the current pointer is 512, the app will not wake up
> until the next interrupt because only 256 frames can be written.
>
Presumably this is on the assumption that 512 frames is a period?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
next prev parent reply other threads:[~2006-03-01 20:28 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-27 16:07 PCM driver only plays tiny portion of clip Adrian McMenamin
2006-02-27 17:26 ` Clemens Ladisch
2006-02-27 17:35 ` Adrian McMenamin
2006-02-28 7:30 ` Clemens Ladisch
2006-02-28 9:10 ` Adrian McMenamin
2006-02-28 14:55 ` Clemens Ladisch
2006-02-28 15:14 ` Adrian McMenamin
2006-02-28 17:08 ` Clemens Ladisch
2006-02-28 17:36 ` Adrian McMenamin
2006-03-01 19:10 ` Adrian McMenamin
2006-03-01 19:31 ` Lee Revell
2006-03-01 19:40 ` Adrian McMenamin
2006-03-01 19:59 ` Lee Revell
2006-03-01 20:20 ` Adrian McMenamin
2006-03-01 20:31 ` Lee Revell
2006-03-01 20:28 ` Adrian McMenamin [this message]
2006-03-01 20:41 ` Lee Revell
2006-03-02 20:49 ` Adrian McMenamin
2006-03-03 7:27 ` Clemens Ladisch
2006-03-03 7:42 ` Adrian McMenamin
2006-03-03 8:12 ` Lee Revell
[not found] ` <1141373843.9229.4.camel@localhost.localdomain>
2006-03-03 8:45 ` Lee Revell
2006-03-03 8:18 ` Lee Revell
2006-03-03 8:36 ` Lee Revell
2006-03-01 19:45 ` Adrian McMenamin
2006-02-27 23:08 ` Adrian McMenamin
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=1141244926.9233.32.camel@localhost.localdomain \
--to=adrian@mcmen.demon.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=rlrevell@joe-job.com \
/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