如何开发具有混响功能的 iphone 应用程序? [英] How to develop an iphone app with reverb functionality?
问题描述
我正在开发 iPhone 应用程序(如音频处理).我必须给音频一些效果.如果是桌面应用程序,很多选项在那里.我们可以得到很好的例子和完整的项目,比如大胆.但我想为 iPhone 开发.
I am developing an iPhone application (like Audio Processing). I have to give some effect to the audios. If it is desktop app, many options are there. We can get good examples and full project like audacity. But I want to develop for iPhone.
我有一个带有混响选项的应用程序;(看看下面的链接).只是我观看了视频",我没有在我的 iPhone 设备上测试这个应用程序.
http://www.appstorehq.com/reverb-iphone-89870/app
I got an app with reverb option; (take a look at following link). Just I watch the "video", I did not test this application in my iPhone device.
http://www.appstorehq.com/reverb-iphone-89870/app
我的问题是;如何开发具有混响功能的应用程序?有没有相关文件?如果是,请与我们分享.
My question is; How can I develop the app with reverb functionality ? Is there any documentation for that ? If it is, just share with us.
注意:我们可以使用 AudioUnit 来开发具有混响功能的应用程序(我不清楚这一点.).
NOTE: We can use AudioUnit to develop the app with reverb functionality (I am not clear with this.).
我不喜欢使用任何第三方库.
I don't like to use any third party library.
如果有人对此有所了解,请与我们分享.
If anybody having knowledge about this, please share with us.
谢谢.
推荐答案
如果您的目标是 ios5,您可以只使用效果音频单元的音频单元子类型 kAudioUnitSubType_Reverb2.
if yourre targeting ios5 you can just the audio unit subtype kAudioUnitSubType_Reverb2 of the effect audio unit.
AudioComponentDescription auEffectUnitDescription;
auEffectUnitDescription.componentType = kAudioUnitType_Effect;
auEffectUnitDescription.componentSubType = kAudioUnitSubType_Reverb2;
auEffectUnitDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
AUGraphAddNode(
processingGraph,
&auEffectUnitDescription,
&auEffectNode),
未能在 remoteio 回调中编写自己的混响代码.一个简单的延迟可能更容易做到,听起来也很相似.
Failing that you could just write your own reverb code in the remoteio callback. A simple delay might be easier to do and would sound similar.
这篇关于如何开发具有混响功能的 iphone 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!