I'm trying to implement AudioServicesPlaySystemSound(SystemSoundID(****))
therefor I need a list of existing IDs for Apples SystemSounds. Searching through various posts I found this on GitHub. I couldn't find a fitting sound in this list for my purpose. Since this repository wasn't updated since 2013 I'm not sure if its up to date. I would like to know if there is a list of SystemSounds which is more up to date.
- 积分
0 - 话题
0 - 评论
3283 - 注册排名
2349
首先,您发现的列表不是Apple发布的。 我不知道作者是自己研究还是仅仅收集了它们,但是这种行为被认为是一种逆向工程,受到开发者协议的禁止。
我无法在此列表中找到适合我的声音。
You may need to find a sound resource instead of SystemSoundID, and register it and create a SystemSoundID for it using
AudioServicesCreateSystemSoundID
.我想知道是否有最新的SystemSounds列表。
The latest list of public SystemSoundID is here:
(其中一些仅用于macOS。)
使用其他SystemSoundID可以视为使用私有API。
苹果开发人员在苹果开发论坛中的一些评论:
Does this count as a private API?
Haptic feedback for force touch?