Re: AudioDeviceStop and ioProc
Re: AudioDeviceStop and ioProc
- Subject: Re: AudioDeviceStop and ioProc
- From: Jeff Moore <email@hidden>
- Date: Thu, 11 May 2006 13:57:50 -0700
On May 11, 2006, at 1:09 PM, Tim Dorcey wrote:
My understanding is that if I call
AudioDeviceStop(default_input_device,ioProc), then I can be certain my
ioProc will not be called again once this function returns. Is that
correct?
Only if the call is made from the IO thread. If the call is made from
any other thread, you can expect any number of calls to your IOProc
between you making the call and it actually stopping. Normally this
number will be quite small, but there are no guarantees about it.
And, I guess if my ioProc happened to be in progress at the time
the call was made, then the calling thread would block until the
ioProc
returned?
That is correct. Any API action that affects what the IO thread is
doing synchronizes with the IO thread.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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