stop

fun stop(): ERROR CLASS: Unresolved name: CloseAudioDevice

Stops the audio device.


fun stop(playable: Playable)

Stops 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 reset to the beginning and can be played again with play.

Parameters

playable

The playable audio format to stop.