Calling synchronous AudioQueueStop() in output callback
Calling synchronous AudioQueueStop() in output callback
- Subject: Calling synchronous AudioQueueStop() in output callback
- From: Bankim Bhavsar <email@hidden>
- Date: Fri, 18 Mar 2011 14:26:52 -0700
Hello CoreAudio folks,
Using output audio queue for playback on audio queue's internal thread.
status = AudioQueueNewOutput(&format,
SoundAQOutputCB, // Callback
stream, // Client data
NULL, //
Use CoreAudio's internal thread
kCFRunLoopCommonModes,
0,
&stream->audioQueue);
In the application at times I need to stop audio queue synchronously.
Question:
Is it okay to stop audio queue *synchronously* in the output callback
itself (on audio queue;s internal thread) with AudioQueueStop(queue,
true)?
Can this lead to a deadlock internally in CoreAudio sound subsystem?
Thanks,
Bankim.
_______________________________________________
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