I am working on the VOIP Application, for voice capturing and play i am using AudioQueue framework, facing one wired issue,
Whenever application window get miniaturize , it doesn't play audio for fraction of the sec, till window doesn't get miniaturize.
I feel its due to running AudioQueue in the main thread, i tried running audioQueue in Other thread, but in that AudioQueue is not working.
Any pointers how to resolve this issue ?
Or .... Is there any way to handle notification when a user press Minimize button and i can handle and refuse to minize when audio is going on ? i am getting delegate method for closing and other activity but not for the When minimize button pressed.
Thanks for looking at it
It got resolved with using CFRunloop in the playback audio queue, like this,
Using this line of code, i can start audioQueue from the thread.