• 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: "Hamish Allan" <email@hidden>
  • Date: Fri, 19 Dec 2008 00:41:53 +0000

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

  • Follow-Ups:
    • Re: AVAudioPlayer
      • From: William Stewart <email@hidden>
References: 
 >AVAudioPlayer (From: "Hamish Allan" <email@hidden>)
 >Re: AVAudioPlayer (From: David Duncan <email@hidden>)
 >Re: AVAudioPlayer (From: William Bates <email@hidden>)

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