Sound loop

From Sim Innovations Wiki
Jump to navigation Jump to search

Description

sound_loop(sound_id)

sound_loop is used to play a previously loaded sound. The sound will be played forever.

Return value

This function won't return a value.

Arguments

# Argument Type Description
1 sound_id Number Sound id received from the sound_add function.

Example

-- Load sounds
mysound1 = sound_add("mysound1.wav")

-- Play the sound (this will be played forever...)
sound_loop(mysound1)

-- Except if you call the sound_stop function
sound_stop(mysound1)