问题
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