Re: AVAudioPlayer
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