audio.pause

getAudio(id).pause() (since beta 0.3)

Pauses the audio file.

Example:

[js highlight=”9″ try=”true”]newAudio(“sentence”, “test.mp3”)
.play()
,
newTimer(“preview”, 750)
.start()
.wait()
,
getAudio(“sentence”)
.pause()
.print()
.wait()
[/js]

Starts playing the file test.mp3, pauses it after 750ms, and shows controls on the screen making it possible to resume playback.