基本系统提供的音频单元实现
如果有人可以发布或指导我简单地实现系统提供的音频单元之一,我会很高兴。我希望在 iOS 中使用 AUPitch(iPhone 甚至支持该设备吗?),但似乎没有任何关于如何使用它的简单描述。
提前致谢,
mIL3S
I'd love it if someone could post or direct me to a simple implementation of one of the system supplied Audio Units. I'm looking to use the AUPitch in with iOS (does iPhone even support that unit?) and there doesn't appear to be any simple description of how to use it.
Thanks in advance,
mIL3S
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不幸的是,AUPitch 在 iOS 上不可用。 yoknapatawpha 对 Dirac 库 的引用很好,但音频单元还有更多内容实施比人们从贾斯汀的帖子中想象的要好。我推荐以下资源:
如果我回去从头开始,在彻底读完前三本书之前我不会碰任何东西。整理 Apple 文档可能会很麻烦,但请仔细阅读此处引用的文档。从头到尾。我无法计算有多少对我不起作用的事情,当我意识到我错过了音频单元托管指南中的细节时,我才找到了解决方案,只是决定,“哦,我就给这是一个机会”...请使用这些资源,当您有更多问题时再回来!
Unfortunately, AUPitch is not available on iOS. yoknapatawpha's reference to the Dirac library is a good one, but there's a lot more to Audio Unit implementation than one might assume from Justin's post. I'd recommend the following resources:
Were I to go back and start from scratch, I wouldn't touch anything until I'd thoroughly read the first three. The Apple docs can be a pain to sort through, but read the one referenced here cover to cover. I can't count the number of things that didn't work for me that I only found a solution for when I realised I'd missed that detail in the Audio Unit Hosting Guide by just deciding, "Oh, I'll just give this a shot"... Do use those resources, and come back when you've got more questions!
我在Apple文档中找不到明确的声明(检查此处),但我非常确定 OSX 提供的大多数 AudioUnit 在 iOS 中不可用。 (这个主题也多次出现在 Core Audio 邮件列表中。)
对于 iOS 上的音频变调解决方案,我会推荐 Dirac 3 或 Rubber Band 库。
I can't find a definitive statement in the Apple docs (check here) but I'm pretty certain that most of the AudioUnits supplied with OSX are unavailable in iOS. (This topic has also come up several times on the Core Audio mailing list.)
For an audio pitch-shifting solution on iOS, I would recommend Dirac 3 or the Rubber Band library.
如果您找不到示例,那么使用此 au 所需要做的就是创建一个 au 图形/渲染器,然后添加您想要的 au,设置其参数,渲染等...我假设有提供的示例苹果将引导您完成此操作。
从那里:
请参阅您要定位的 sdk 的 AudioUnitParameters.h,以获取系统 AU 的每个参数的文档。
寻找内容的摘录:
祝你好运
if you find no sample, all you have to do to use this au is to create an au graph/renderer, then add the au you want, set its parameters, render, etc... i'm assuming there are examples provided by apple which walk you through this.
from there:
see AudioUnitParameters.h of the sdk you're targeting for documentation of each parameter for the system AUs.
an excerpt of what to look for:
good luck