AVAudioPlayer could not play after recording via AudioQueue Object.
AVAudioPlayer could not play after recording via AudioQueue Object.
- Subject: AVAudioPlayer could not play after recording via AudioQueue Object.
- From: Xu Ting <email@hidden>
- Date: Sat, 30 May 2009 12:37:18 +0900
Hi, list,
I've been fighting for AVAudioPlayer and AudioQueue object for 2 days,
and I need your guys' help.
Here is my Dev environment:
iPhone: 3.0Beta 5
OSX 10.5.7
Here is my scenario:
1. I need to use AVAudioPlayer to play a CAF with IMA4 data format.
Including fast forward and rewind.
2. I need to use AudioQueue Object to record audio, because 3.0 has
not go public yet.
3. A common scenario is record an audio A, then play the original
audio A'(Not the one recorded) or vice versa.
The problem is I could play the A' file after I record file A.
[theAVAudioPlayer play] always return NO, but [theAVAudioPlayer
prepareToPlay] return YES.
This situation only happened after I used the AudioQueue Object for
recording. If I did not record, it always worked fine.
About the clean up.
1. I released the theAVAudioPlayer object and set to nil each time
after I finished playing.
2. I closed the audio file and deposed the AudioQueue Object each time
after I finished recording.
Can anybody give me some hints or explanation?
Thanks.
-Tonny
--
Life is like a box of chocolates, u never know what u'r gonna get.
_______________________________________________
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