Change the duration of AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)

你离开我真会死。 提交于 2019-12-23 03:14:38

问题


I'm using AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);

How can I choose the duration of the vibration?

I want only one short vibration, like the "click" from tapping a keyboard button.


回答1:


You can use for short vibration

AudioServicesPlaySystemSound(1520); // 1521


来源:https://stackoverflow.com/questions/22176750/change-the-duration-of-audioservicesplaysystemsoundksystemsoundid-vibrate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!