sound_unload()

Unloads a sound file from a specified audio slot.

Syntax

sound_unload(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

Unload the sound file from the first audio slot (slot 0)

sound_unload(0); 

Unload the sound file from the second audio slot (slot 1)

sound_unload(1); 

See also

beep
siren
sound_load
sound_unload
sound_play
sound_stop
sound_is_playing