Re: Audioqueue Runloop blocks my gui
Re: Audioqueue Runloop blocks my gui
Hi Chris,
thank you for your answer. I deleted the runloops and the gui responds. The problem is now, that only a short part of the sound - probably the first buffer - is being played. After that the sound is cut off. Is this a callback problem, because I also don't see that the flag which indicates that the end of the file is reached is set anymore ?
Karsten
P.S. : I am waiting already for the next Rough Cuts chapters of your Core Audio book -:)
Am 21.11.2010 um 18:39 schrieb Chris Adamson: If you have a GUI, I'm pretty sure you don't need the runloop that's in the Apple examples… that's just provided so the command-line executable application doesn't reach the bottom of main() immediately and terminate.
--Chris Hi,
I use the Audioqueue play example from the Audioqueue programming guide and it plays the sounds, but for the time the sounds has not finished playing until the very end the gui is unresponsive and blocked so that I can not press a stop button for example. How do I have to set up the inCallbackRunLoop and inCallbackRunLoopMode to keep the guiresponsive ? Do I need to use the while loop in AudioQueueStart ? Or have to start another thread ?
It is a little bit confusing for me and I would be really happy if somebody has an answer...
Karsten
|
_______________________________________________
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