• 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
AudioQueueNewOutput causes gui to lock up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: AudioQueueNewOutput causes gui to lock up
      • From: Chris Adamson <email@hidden>
    • Re: AudioQueueNewOutput causes gui to lock up
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Reading audio unit presets from *.aupreset file
  • Next by Date: Audio Reflector Driver Source?
  • Previous by thread: Reading audio unit presets from *.aupreset file
  • Next by thread: Re: AudioQueueNewOutput causes gui to lock up
  • Index(es):
    • Date
    • Thread