• 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
How can I get an audio queue to stop playing immediately?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I get an audio queue to stop playing immediately?


  • Subject: How can I get an audio queue to stop playing immediately?
  • From: John Zorko <email@hidden>
  • Date: Tue, 30 Sep 2008 18:03:23 -0700


Hello, all ...

My experience has been that, no matter if I call AudioQueueStop() with true or false (waiting for IsRunning to be set to false before continuing either way), the audio queue doesn't stop immediately ... it takes 5-20 seconds, occasionally longer.  I would like the user to experience an instant stop of one stream and a very speedy start of the next when they choose a different stream, but AudioQueueStop() never seems to stop the playing audio right away.

I've tried calling AudioQueuePause() before I call AudioQueueStop(), to no avail.  Is there a way to make the audio queue stop playing immediately, as in, within perhaps 100ms after I call the function?

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











 _______________________________________________
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

  • Prev by Date: Re: error when setting AUTimePitch stream format [SOLVED]
  • Previous by thread: Re: How to perform fast forward/rewind with AudioQueue
  • Index(es):
    • Date
    • Thread