- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在 Apple 的创建 AUAudio 单元的文档中(此处:https://developer.apple.com/documentation/audiotoolbox/auaudiounit/1387570-initwithcomponentdescription)他们声称
A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.
我在网上找不到这方面的例子。理想情况下,如果您的答案/解决方案涉及使用 Swift 和 AVAudioEngine 会很好,但我很乐意接受任何让我朝着正确方向前进的答案。
提前致谢。
最佳答案
我在 GitHub 上发布了一些源代码到我的测试应用程序,它使用 AVAudioEngine、Swift 和 C 实例化了一个 AVAudioUnit 生成器子类对象:
https://github.com/hotpaw2/auv3test5
请注意 Apple recommends NOT using Swift在实时音频上下文中,因此我的源代码部分是用 C 语言编写的,在 Objective C 包装类中。
如果您使用 initWithComponentDescription:options:error: ,你可以传递一个选项来配置你的新音频单元子类对象来做任何事情(在选项上使用类似 switch 语句的东西)。
关于ios - 如何创建实现多个音频单元的 AUAudioUnit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46761477/
在 Apple 的创建 AUAudio 单元的文档中(此处:https://developer.apple.com/documentation/audiotoolbox/auaudiounit/138
我看到了 WDC 2016 conference关于 Core Audio,Doug Wyatt 在第 29 分钟开始谈论实时音频。因为我正在开发一个高性能的音频应用程序,所以我需要这样做。 但是我注
AUAudioUnit 和 AVAudioUnit API 看起来非常相似, 有什么区别?什么时候使用哪一个? 最佳答案 AVAudioUnit 连接为 AVAudioEngine 中的一个节点。 A
好吧,我显然错过了一些重要的部分。我正在尝试通过网络实现低延迟音频,我的基本帧是 10 毫秒。我原以为这不会有问题。我的目标手机是 iPhone X 扬声器,因此我的硬件采样率应锁定为 48000Hz
我是一名优秀的程序员,十分优秀!