jeff
jeff

Reputation: 23

Change the duration of AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)

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.

Upvotes: 2

Views: 6799

Answers (1)

tnrvrd
tnrvrd

Reputation: 3240

You can use for short vibration

AudioServicesPlaySystemSound(1520); // 1521

Upvotes: 5

Related Questions