iPhone - 录制仅由应用程序播放的音频
我正在创建一些可以播放钢琴、鼓等声音的应用程序。 我有一个录音功能。它的录音很好而且很好。我正在使用 AVAudioRecorder。 但除了应用程序声音之外,还添加了外部声音。我怎样才能让我的录音机只录制应用程序的声音...... 我还需要使用其他类/框架吗?
I'm creating some application 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有 API 可以将 iPhone 应用程序的音频输出重定向到文件。
我认为您唯一的选择是使用低级音频 API(AudioQueues 或 RemoteIO 单元),并在录制时将样本写入文件(通过缓冲区)以及扬声器。
这需要您生成、排列和混合乐器样本,而使用更高级别的 API 则不必担心这些问题。
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.