• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Audioqueue Runloop blocks my gui
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audioqueue Runloop blocks my gui


  • Subject: Re: Audioqueue Runloop blocks my gui
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 21 Nov 2010 22:30:48 +0100

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

On Nov 21, 2010, at 6:17 AM, email@hidden wrote:

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

References: 
 >Audioqueue Runloop blocks my gui (From: "email@hidden" <email@hidden>)
 >Re: Audioqueue Runloop blocks my gui (From: Chris Adamson <email@hidden>)

  • Prev by Date: Re: Audioqueue Runloop blocks my gui
  • Next by Date: Using Apple virtual instruments from my software
  • Previous by thread: Re: Audioqueue Runloop blocks my gui
  • Next by thread: How to obtain auvaltool v1.6? (plus... my audiounit is not showing up in auval anymore!)
  • Index(es):
    • Date
    • Thread