All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Pushor <timp@crossthread.com>
To: alsa-devel@alsa-project.org
Subject: period time in async handler
Date: Tue, 10 Jun 2008 20:35:12 -0600	[thread overview]
Message-ID: <484F39E0.2010205@crossthread.com> (raw)

Hi Friends,

I have a need to have an audio player kick off things at various points 
of time through playback of an audio file. I'm trying to hack aplay as a 
proof of concept.

If I understand correctly, the asynchronous handler seems to do what I 
want. I hacked in a handler to aplay and it works, but not quite like 
how I expected.

I counted the number of times that the handler got called, and thought 
that if I multiplied that by the period time that I'd end up with the 
total audio length but that doesn't seem to be the case. I was under the 
assumption that the handler was called once per period.

I must not understand the relationship of the asynchronous handler and 
period_time. Does this make sense? Am I going about this all wrong?

Thanks,
Tim

             reply	other threads:[~2008-06-11  2:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11  2:35 Tim Pushor [this message]
2008-06-11 16:31 ` period time in async handler 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=484F39E0.2010205@crossthread.com \
    --to=timp@crossthread.com \
    --cc=alsa-devel@alsa-project.org \
    /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.