Re: stopping sound
Re: stopping sound
- Subject: Re: stopping sound
- From: Jens Alfke <email@hidden>
- Date: Sun, 6 Apr 2008 10:02:04 -0700
On 5 Apr '08, at 6:23 PM, Roland Silver wrote:
How do I change the code to run asynchronously?
By putting the sound-playing loop on a background thread, or by using
audio APIs that do their work on background threads (like AudioQueue.)
I haven't looked at the code you're working with; but if you use
AudioUnits to generate/process audio, your input callbacks will be
invoked on the audio unit's thread.
Threading is a complicated subject, and OT here; check the Apple docs
for NSThread, the Unix docs for pthreads, and the 'Advanced Mac OS X
Programming' book.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden