AudioServicesCreateSystemSoundID
有什么作用?
我只能从 Apple 的网站上找到这个:
// Create a system sound object representing the sound file
AudioServicesCreateSystemSoundID (
soundFileURLRef,
&soundFileObject
);
而且这不是很有帮助。我总是看到它已创建但从未使用过。
最佳答案
用于播放短音和提示。看这个Audio & Video Coding How-To一小段示例代码。
但是,我见过的使用它的最佳示例代码在 iPhone SDK Development book 中。 , 第 17.2 章。可以从书上下载代码here .查找 SystemSoundsDemo 项目。
关于iphone - AudioServicesCreateSystemSoundID 是做什么的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3833141/