[nas] Re: Can play file with AuSoundPlayFromFile
Erik Auerswald
auerswal at unix-ag.uni-kl.de
Tue Aug 8 05:05:49 MDT 2006
Hi,
On Tue, Aug 08, 2006 at 11:49:31AM +0100, Pooly wrote:
> 2006/7/29, Erik Auerswald <auerswal at unix-ag.uni-kl.de>:
> >On Fri, Jul 28, 2006 at 04:09:37PM +0100, Pooly wrote:
> >>
> >> Is it the correct way to play a file asynchronously ? I don't want to
> >> have AuNextEvent waiting for an incoming event.
> >
> >Take a look at nas/clients/audio/examples/playSimul.c to see how to wait
> >on events only when playing.
>
> Does this ensure that the playing is done asynchronously so that I can
> use that method in a near real-time app ?
Yes, this is asynchronous playing. To play synchronously you have to use
AuSoundPlaySynchronousFromFile().
Erik
--
When you design for the future, the sanity you save may be your own.
-- Eric S. Raymond
More information about the Nas
mailing list