AUScheduledSoundPlayer : Setting 'ScheduleAudioSlice' from worker thread
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