Skip to content

sound methods

Protovision edited this page Jan 8, 2016 · 1 revision
sound:play( fade_ms )

Plays the sound once. fade_ms optionally specifies the number of milliseconds to start playing the sound from silence until it reaches full volume. Returns a userdata object of type "moonbase_channel"

sound:loop( fade_ms )

Plays the sound in a loop. fade_ms optionally specifies the number of milliseconds to start playing the sound from silence until it reaches full volume. Returns a userdata object of type "moonbase_channel"

Clone this wiki locally