• 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: Can anyone explain me the audio playing on iPhone.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Can anyone explain me the audio playing on iPhone.
      • From: William Stewart <email@hidden>
References: 
 >Can anyone explain me the audio playing on iPhone. (From: "SridharRao M" <email@hidden>)

  • Prev by Date: Re: Audio Device identification.
  • Next by Date: AUTimePitch
  • Previous by thread: Re: Can anyone explain me the audio playing on iPhone.
  • Next by thread: Re: Can anyone explain me the audio playing on iPhone.
  • Index(es):
    • Date
    • Thread