On Dec 10, 2016, at 4:17 , Andreas Falkenhahn <[email protected]> wrote: > I think all I'd need to know is this: > > Do the render callback as installed by a call to > > AudioUnitSetProperty(mixerAudioUnit, kAudioUnitProperty_SetRenderCallback, > kAudioUnitScope_Input, chan, &callback, sizeof(AURenderCallbackStruct) > > and the notification callback as installed by a call to > > AudioUnitAddRenderNotify(mixerAudioUnit, myNotificationCallback, NULL); > > run on the same thread or on different threads? To my understanding they > must run on the same thread because the notification callback is run > with kAudioUnitRenderAction_PreRender and kAudioUnitRenderAction_PostRender > flags, respectively, which implies to me that both callbacks are run by the > same thread. > > It would be very helpful if you could provide a definitive answer here.
It is expected that the AU call the pre- and post- render notification callbacks from the render thread. The original intent of these callbacks was so that a sequencer could use them to schedule MIDI events using sample offsets into the buffer that is about to be rendered. Regards, Doug
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
