sound_stop()

Stops the sound playback from the specified audio player slot.

Syntax

sound_stop(slot)

Parameters

Parameter Type Description Comment
slot Number The index of the audio player slot (0 to 7). There are 8 slots available (0-7).

Return Value

Examples

Stop the sound from the first audio slot (slot 0)

sound_stop(0); 

Stop the sound from the second audio slot (slot 1)

sound_stop(1);

See also

beep
siren
sound_load
sound_unload
sound_play
sound_stop
sound_is_playing