RE: AudioDeviceStop and ioProc
RE: AudioDeviceStop and ioProc
- Subject: RE: AudioDeviceStop and ioProc
- From: "Tim Dorcey" <email@hidden>
- Date: Thu, 11 May 2006 18:18:30 -0700
- Importance: Normal
> Let me say this clearly so that there is no misconception: The only
> way to get guaranteed behavior from AudioDeviceStop() is to call it
> on the IO thread. The guarantee that is given is twofold. First, the
> IOProc being stopped will never get called until Start() is called
> again. Second, any output data supplied in that final call to the
> IOProc will get sent to the hardware.
Thanks for clearing this up. I see that you are thinking of an output
device. I assume the same holds true for an input device that is feeding
data to me in the ioProc.
So, it sounds like the best way to terminate audio capture is to just have
my ioProc call AudioDeviceStop for itself. Easy enough. For some reason, I
was under the impression that it would not be safe to call AudioDeviceStop
from within the ioProc.
Tim
_______________________________________________
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