Skip to content
Chris Petersen edited this page Oct 16, 2014 · 3 revisions

audiofile-stop stops the audio subsystem, this is necessary to perform a vibration on iOS. The audio subsystem can then be restarted with audiofile-start.

Example

Example of stopping the audio subsystem for a vibration and then at some later time starting it again. This must be done on iOS for the vibration to work if the audio subsystem has been initialized, but this step is not necessary on Android.

(audiofile-stop)
(vibrate)
...
(audiofile-start)
(audiofile-play ahooga)
Clone this wiki locally