iPhone 版 Soundtouch
Has someone been able to make
http://www.surina.net/soundtouch/
work for iPhone?
Simple Xcode Demo would be helpful.
I'd just like to play a soundeffect with some pitch manipulation.
thx
chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 SoundTouch 实现音频效果的最佳方法是同时使用 SoundStretch。
您可以从这里下载两者的源代码 http://www.surina.net/soundtouch/源代码.html
使用示例:
其中
base:output:effects
定义为:如果您不想自己编译 SoundTouch,我已经与编译的库共享了 GitHub 存储库对于
armv7
、armv7s
、arm64
、i386
和x86_64
https://github.com/enrimr/soundtouch-ios-library
如果您想通过以下方式使用 SoundTouch如果您自己不使用 SoundStretch,则必须在 Xcode 项目中添加 SoundTouch 目录(其中包括 libSoundTouch.a 和带有标头的目录)。
对于 SWIFT 项目:
使用 SWIFT 编程时,您无法导入 .h,因此您需要创建一个名为-Bridging-Header-File 的 .h 文件.h
然后在您的项目构建设置中引用它(在“Swift Compiler”下查找“Objective C Bridging Header”):
现在您必须能够使用 SoundTouch 类。
对于 Objective-C 项目:
包含以下行
在控制器文件中
。
createWavWithEffect
的实现:The best way to implement audio effects using SoundTouch is using also SoundStretch.
You can download the source code of both from here http://www.surina.net/soundtouch/sourcecode.html
Example of use:
Where
base:output:effects
is defined as:If you don't want to compile by yourself SoundTouch, I have shared a GitHub repository with that libraries compiled for
armv7
,armv7s
,arm64
,i386
andx86_64
https://github.com/enrimr/soundtouch-ios-library
And if you want to use SoundTouch by yourself without using SoundStretch, you have to add SoundTouch directory (which includes libSoundTouch.a and the directory with headers) in your Xcode project.
For SWIFT projects:
Programming with SWIFT you can't import a .h so you will need to create a .h file named
<Your-Project-Name>-Bridging-Header-File.h
Then reference it in your projects build settings (under "Swift Compiler" look for "Objective C Bridging Header") with:
And now you must be able to use SoundTouch class.
For Objective-C projects:
Include the following line
in your controller file.
Implementation of
createWavWithEffect
: