2

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.

jscs
  • 63,694
  • 13
  • 151
  • 195
jeff
  • 23
  • 1
  • 4

1 Answers1

5

You can use for short vibration

AudioServicesPlaySystemSound(1520); // 1521
Muhammed Tanriverdi
  • 3,230
  • 1
  • 23
  • 24