开发者

iPhone - Recording audio played only by app

开发者 https://www.devze.com 2023-03-04 18:07 出处:网络
I\'m creating some applicatio开发者_Go百科n that plays sounds like piano, drums etc. I have a recording feature in that. Its recording well and good. I\'m using AVAudioRecorder.

I'm creating some applicatio开发者_Go百科n that plays sounds like piano, drums etc. I have a recording feature in that. Its recording well and good. I'm using AVAudioRecorder. But along with application sound, outside sound is also being added. How can I make my recorder record only app sounds..... Is there any other class/framework that I've to use.


There is no API that will redirect an iPhone app's audio output to a file.

I think your only option is to use a low level audio API (either AudioQueues or RemoteIO units) and when recording write the samples out to a file (via a buffer) as well as to the speaker.

This would require you to generate, arrange and mix the instrument samples, something wouldn't have to worry about with a higher level API.

0

精彩评论

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