• 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
Calling synchronous AudioQueueStop() in output callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling synchronous AudioQueueStop() in output callback


  • Subject: Calling synchronous AudioQueueStop() in output callback
  • From: Bankim Bhavsar <email@hidden>
  • Date: Fri, 18 Mar 2011 14:26:52 -0700

Hello CoreAudio folks,

Using output audio queue for playback on audio queue's internal thread.

     status = AudioQueueNewOutput(&format,
                                   SoundAQOutputCB,      // Callback
                                   stream,                       // Client data
                                   NULL,                         //
Use CoreAudio's internal thread
                                   kCFRunLoopCommonModes,
                                   0,
                                   &stream->audioQueue);

In the application at times I need to stop audio queue synchronously.

Question:
Is it okay to stop audio queue *synchronously* in the output callback
itself (on audio queue;s internal thread) with AudioQueueStop(queue,
true)?
Can this lead to a deadlock internally in CoreAudio sound subsystem?

Thanks,
Bankim.
 _______________________________________________
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: Calling synchronous AudioQueueStop() in output callback
      • From: Bankim Bhavsar <email@hidden>
  • Prev by Date: Re: Help: XCode 3.2 breaks XCode 3.1 projects
  • Next by Date: Re: Calling synchronous AudioQueueStop() in output callback
  • Previous by thread: Re: Help: XCode 3.2 breaks XCode 3.1 projects
  • Next by thread: Re: Calling synchronous AudioQueueStop() in output callback
  • Index(es):
    • Date
    • Thread