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