Re: How can I get an audio queue to stop playing immediately?
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
_______________________________________________
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