audio.pauseAudio element

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

Pauses the audio file.

Example:

newAudio("sentence", "test.mp3")
    .play()
,
newTimer("preview", 750)
    .start()
    .wait()
,
getAudio("sentence")
    .pause()
    .print()
    .wait()

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