• 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: AVAudioPlayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AVAudioPlayer


  • Subject: Re: AVAudioPlayer
  • From: William Stewart <email@hidden>
  • Date: Thu, 18 Dec 2008 17:45:13 -0800

probably trying to play two aac or mp3 streams back at a time - you can only play one of any of these (including apple lossless)

On Dec 18, 2008, at 4:41 PM, Hamish Allan wrote:

On Thu, Dec 18, 2008 at 5:52 PM, William Bates
<email@hidden> wrote:

I have used AVAudioPlayer successfully while appending to the file it is
playing. Obviously this is tricky, but it can work.

Great! I'm getting there with my implementation of this.

However, my app also streams audio of indeterminate length, for which
I've written a separate class based on the AudioFileStreamExample,
which calls AudioSessionInitialize(), sets up a
kAudioSessionCategory_MediaPlayback, creates an AudioQueue and an
AudioFileStream, etc.

I find that once I've played audio through this AudioQueue,
-[AVAudioPlayer play] starts returning NO. The documentation says that
-play returns NO on failure, but doesn't say what the circumstances
are. It happens whether or not I set the audio session to active
before creating the AVAudioPlayer.

What am I doing wrong?

Thanks,
Hamish
_______________________________________________
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
References: 
 >AVAudioPlayer (From: "Hamish Allan" <email@hidden>)
 >Re: AVAudioPlayer (From: David Duncan <email@hidden>)
 >Re: AVAudioPlayer (From: William Bates <email@hidden>)
 >Re: AVAudioPlayer (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: AVAudioPlayer
  • Next by Date: Synthesizing sound for the iPhone
  • Previous by thread: Re: AVAudioPlayer
  • Next by thread: Re: hardcoded microphone buffering in iPhone?
  • Index(es):
    • Date
    • Thread