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: Jens Alfke <email@hidden>
- Date: Tue, 10 Jun 2008 10:37:59 -0700
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". ;-)
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.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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