AudioQueueNewOutput causes gui to lock up
AudioQueueNewOutput causes gui to lock up
- Subject: AudioQueueNewOutput causes gui to lock up
- From: Brian Hall <email@hidden>
- Date: Mon, 24 Sep 2012 21:25:21 -0400
I'm trying to write a cocoa app based on the command line sample
"CH05_Player" in "Learning Core Audio"
From what I've read in AudioQueueStart(audioQueue, NULL) should get it
going but nothing happens unless I call CFRunLoopRun(), then the gui
is unresponsive and the audio plays fine.
CheckError(AudioQueueNewOutput(&dataFormat, // ASBD
MyAQOutputCallback, // Callback
&player, // user data
NULL, // run loop
NULL, // run loop mode
0, // flags (always 0)
&queue), // output: reference to AudioQueue object
"AudioQueueNewOutput failed");
The class is just doing audio. I don't understand why it locks up the
gui. I guess this is a simple problem to do with threads but I'm
completely lost at the moment. The docs say "If you specify NULL, the
callback is invoked on one of the audio queue’s internal threads"
which wouldn't seem to cause this problem.
_______________________________________________
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