* period time in async handler
@ 2008-06-11 2:35 Tim Pushor
2008-06-11 16:31 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Tim Pushor @ 2008-06-11 2:35 UTC (permalink / raw)
To: alsa-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: period time in async handler
2008-06-11 2:35 period time in async handler Tim Pushor
@ 2008-06-11 16:31 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2008-06-11 16:31 UTC (permalink / raw)
To: Tim Pushor; +Cc: alsa-devel
At Tue, 10 Jun 2008 20:35:12 -0600,
Tim Pushor wrote:
>
> 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.
Oh, forget about async handler. It's a horrible hack, and in
principle, never guaranteed to work.
We really need to put DONT_USE tag to async handler APIs...
Takashi
> 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
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-11 16:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 2:35 period time in async handler Tim Pushor
2008-06-11 16:31 ` Takashi Iwai
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.