Objective-C - 在 iPhone 上添加声音
我正在为 iPhone 制作声音,并且对添加背景音乐和背景声音感兴趣。
CoreAudio 适合这项工作吗?
如果是这样,我该如何使用它?
I'm making a sound for the iPhone and I'm interested in adding background music and background sounds.
Is CoreAudio right for the job?
And if so, how do I use it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只是播放背景音乐并且不需要高级控件,请尝试 AVAudioPlayer。
对于声音效果,请使用
AudioServicesPlaySystemSound
。If you're just playing background music and doesn't need advanced controls, try AVAudioPlayer.
For sound effects, use
AudioServicesPlaySystemSound
.