• 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
AUScheduledSoundPlayer : Setting 'ScheduleAudioSlice' from worker thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AUScheduledSoundPlayer : Setting 'ScheduleAudioSlice' from worker thread


  • Subject: AUScheduledSoundPlayer : Setting 'ScheduleAudioSlice' from worker thread
  • From: Heinrich Fink <email@hidden>
  • Date: Mon, 23 Apr 2012 10:15:05 +0200

Hi,

I am currently working with AUScheduledSoundPlayer. Usage of the unit is pretty clear and well documented in AudioUnitProperties.h.

However, one thing wasn’t clearly stated and I couldn’t find it in the mailing list archives:

	Is it safe to schedule slices via setting kAudioUnitProperty_ScheduleAudioSlice from a different thread than the audio render thread?

The “ExtractAndPlay” code example seems to schedule slices from the main thread and I guess that the AUScheduledSoundPlayer uses some sort of a lockless ringbuffer internally. So I am rather confident that I could schedule audio slices from a worker thread directly. However, to be on the safe side here, I would appreciate your comments on this.

best regards,

Heinrich Fink



 _______________________________________________
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


  • Prev by Date: Re: Visual feedback from volume changes
  • Next by Date: vDSP and iOS render callback
  • Previous by thread: RE: A Programmer's Guide To Sound
  • Next by thread: vDSP and iOS render callback
  • Index(es):
    • Date
    • Thread