开发者

OpenAL doesn't work when using AVAudioRecorder and AVAudioPlayer

i have been troubled about audio problem for several days. i don't think OpenAL get along with AVAudio functions.

i have my own OpenAL class. ( wrapped the MyOpenAL class ) my app start to record using AVAudioRecorder. i 开发者_C百科stop recording. and then i clicked the "OpenAL Play"button that play any sound using OpenAL. i can't hear it. but i can hear my recording when i clicked the "AVAudioPlayer Play" button using AVAudioPlayer.

i tested oalTouch,avTouch,SpeakHear sample code. they resulted same. in oalTouch, when AVAudioPlayer stop, OpenAL stop playing simultaneously. this is why i think so.

Does OpenAL have the problem using AVAudio~ Functions together?

I was googling for a long time. but i couln't find out the solutions and the same problems issue.

thanks for reading mine.


I'm using AVAudioRecorder (to record) and OpenAL (to playback) and they both go quite well. Just wanted to check if you use Play_And_Record as option when you initialize your AVAudioRecorder?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜