Sound stop
Jump to navigation
Jump to search
Contents
Description
sound_stop(sound_id)
sound_stop is used to stop a previously loaded sound. The sound will be stopped immediately.
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
sound_play(mysound1)
-- And stop it right away
sound_stop(mysound1)