iOS 10中新键盘点击的系统声音ID是什么? [英] What are the system sound ids for the new keyboard clicks in iOS 10?
问题描述
一般
我正在开发第三方键盘,目前正在尝试模仿Apple在iOS 10b4中引入的新键盘点击。
现状
常规点击声可以使用 AudioServicesPlaySystemSound(1104)播放
但我似乎无法找到两个新的其他声音的系统声音ID。我已经找到了他们的 .caf
等价物的位置,但即使在使用 AVAudioPlayer $ c调整音量后,这些也太大了$ c>。
问题
是否可以获得新点击声音的系统声音ID?
额外
如果有人想要 .caf
供个人使用的文件路径,它们是:
General
I'm developing a third party keyboard and am currently trying to mimic the new keyboard clicks that Apple introduced in iOS 10b4.
Current Situation
The regular click sound can be played using AudioServicesPlaySystemSound(1104)
but I can't seem to find the System Sound IDs for the two new other sounds. I've found the location of their .caf
equivalents but those are way too loud to use, even after adjusting their volume using AVAudioPlayer
.
Question
Is it possible to obtain the system sound ids of the new click sounds?
Extra
If anyone wants the .caf
file paths for personal use, here they are:
/System/Library/Audio/UISounds/key_press_click.caf
/System/Library/Audio/UISounds/key_press_delete.caf
/System/Library/Audio/UISounds/key_press_modifier.caf
推荐答案
iOS 10.0 - iOS 11.0 b5
按Click - ID:1123
Press Click - ID: 1123
按删除 - ID:1155
Press Delete - ID: 1155
按修改器 - ID:1156
Press Modifier - ID: 1156
评论(1):相同的ID适用于iOS 11 beta 5
Comment (1): Same IDs work for iOS 11 beta 5
这篇关于iOS 10中新键盘点击的系统声音ID是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!