sound_play()

Plays the sound file loaded in the specified audio slot.

Syntax

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

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

sound_play(0);

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

sound_play(1); 

See also

beep
siren
sound_load
sound_unload
sound_play
sound_stop
sound_is_playing