Re: Can anyone explain me the audio playing on iPhone.
Re: Can anyone explain me the audio playing on iPhone.
- Subject: Re: Can anyone explain me the audio playing on iPhone.
- From: William Stewart <email@hidden>
- Date: Fri, 13 Jun 2008 19:27:20 -0700
On Jun 10, 2008, at 10:37 AM, Jens Alfke wrote:
On 9 Jun '08, at 9:53 PM, SridharRao M wrote:
I am developing a application that should play audio on iPhone.
I'm going to pretend that last word was a typo for "Mac OS X
10.5". ;-)
Funny - that's how I read it as well...
So i have used Audio File Services & Audio Queue Services to play it.
It's only playing .wav files only.
When we use AudioQueueDispose(AQ) at the end of code it's quitting
without playing any.
if i comment this line i can able to play some of the .wav files .
So anyone plz help me if you have idea on these ..
Playback is asynchronous. You shouldn't stop or dispose the queue
until you're told that the audio has finished playing — instead you
should just let the app's runloop run. The best way to detect when
you get to the end is to set a property listener for
kAudioQueueProperty_IsRunning. (You might think you can stop the
queue after your buffer callback reaches EOF, but then the queue
wouldn't play the last second or two of audio that's been buffered.)
This is what the "inImmediate" parameter is to both the Stop and
Dispose calls on the queue object. It tells the queue to either stop/
dispose now, or when it has done all of the work that you have
currently queued up. Then it will stop the queue after it has done all
of that work (if inImmediate is false). Then it fires the IsRunning
property change, because it will have stopped itself and the
notification is its means of telling you it has got to that point.
Bill
—Jens _______________________________________________
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