gpt4 book ai didi

ios - iOS 中的 ADSR,示例代码?

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:51:56 24 4
gpt4 key购买 nike

我一直在寻找一些示例来展示如何做 ADSR在 iOS 中使用音频样本(最好是带有循环点的 WAV 文件,但那是次要的)。我想大多数编写采样器/合成器应用程序的人都为此使用音频单元。有谁知道在任何 iOS 音频库中显示 ADSR 的好代码示例吗?

最佳答案

在新的 iOS SDK 5.0 中,现在有一个采样器音频单元!哪个可以做 ADSR 包络。

预设演示展示了如何使用采样器: http://developer.apple.com/library/ios/#samplecode/LoadPresetDemo/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011214

如果你想加载不同的声音格式来播放这篇文章很有帮助: https://developer.apple.com/library/mac/#technotes/tn2283/_index.html

这是 iOS 文档引用: http://developer.apple.com/library/ios/#documentation/AudioUnit/Reference/AUComponentServicesReference/Reference/reference.html#//apple_ref/doc/uid/TP40007291

关于ios - iOS 中的 ADSR,示例代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7921302/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com