1

is there any way to play a short sound and let the phone vibrate at the same time? I found something about AudioQueing, but I'm a newbie and cant wrap my head around that whole process of AudioQueing.

Kind regards from Germany

4

1 回答 1

0

是的。你有什么问题?播放声音、振动,还是同时进行?要播放短声音,您可以使用AVAudioPlayer该类。振动由以下代码触发:

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

例如,此处描述。

于 2010-06-22T11:05:55.250 回答