Re: How to safely dispose of audio converter
Re: How to safely dispose of audio converter
- Subject: Re: How to safely dispose of audio converter
- From: Doug Wyatt <email@hidden>
- Date: Sat, 10 Dec 2016 10:14:33 -0800
On Dec 10, 2016, at 4:17 , Andreas Falkenhahn <email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden