pause

fun pause(playable: Playable)

Pauses a playable audio format, which can be a Sound, MusicStream, or AudioStream. If the audio is not playing, this function does nothing. After calling this function, the audio will be paused at its current position and can be resumed with resume.

Parameters

playable

The playable audio format to pause.