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

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


  • Subject: Re: How can I get an audio queue to stop playing immediately?
  • From: "Jason Slater" <email@hidden>
  • Date: Wed, 1 Oct 2008 09:16:53 -0400

Have you tried calling AudioFileClose() before AudioQueueStop()?

Look for a sample called "SpeakHere" - I've used this for learning how to play/record audio and it works very well.

Jason

2008/9/30 John Zorko <email@hidden>

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

 _______________________________________________
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: How can I get an audio queue to stop playing immediately?
      • From: John Zorko <email@hidden>
  • Next by Date: Re: Failure of MIDIDeviceCreate
  • Next by thread: Re: How can I get an audio queue to stop playing immediately?
  • Index(es):
    • Date
    • Thread