Re: Why a simple aif file doesn't play?
Re: Why a simple aif file doesn't play?
- Subject: Re: Why a simple aif file doesn't play?
- From: Jens Alfke <email@hidden>
- Date: Tue, 10 Feb 2009 09:20:01 -0800
Where does it crash? What line of your app is active?
One problem with the code is that you're not giving it any time to
play the file! You start the queue and then immediately stop it. You
need to let the queue run until it gets to the end of the audio; your
callback can determine when it's time to do that.
Did you look at the AudioQueueTools example in /Developer/Examples/
CoreAudio? It demonstrates how to play an audio file using a queue.
—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