• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: stopping sound
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: stopping sound (From: Roland Silver <email@hidden>)

  • Prev by Date: How to add an Audio Unit to Kalimba?
  • Next by Date: Re: How to add an Audio Unit to Kalimba?
  • Previous by thread: Re: stopping sound
  • Next by thread: button clicking suppressed
  • Index(es):
    • Date
    • Thread