Re: help: input only AUHAL AudioUnitRender returns kAudioUnitErr_CannotDoInCurrentContext after sample rate change
Re: help: input only AUHAL AudioUnitRender returns kAudioUnitErr_CannotDoInCurrentContext after sample rate change
- Subject: Re: help: input only AUHAL AudioUnitRender returns kAudioUnitErr_CannotDoInCurrentContext after sample rate change
- From: Doug Wyatt <email@hidden>
- Date: Tue, 7 Sep 2010 08:42:39 -0700
On Sep 3, 2010, at 17:34 , Ross Bencina wrote:
> One thing is still bothering me: I don't understand why the AU is calling my IOProc when it refuses to supply the audio data until it is reconfigured. The main issue here is that I don't know what the concurrency requirements are:
>
> - So I can change the sample rate without stopping and uninitializing/re-initializing the AUHAL?
Yes; AUHAL will stop performing I/O (even as the underlying HAL IOProc continues to run) during a reconfiguration.
> - Is it safe to reconfigure the sample rate the the notification callback, even if the IOProc might be running,
Yes
> or would this cause a deadlock?
No
cheers,
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