Audio

#experimental

playSound(Identifier Type > String, Loops Type > Integer)

Plays the audio file in any available channel. It loops for the amount given. If "Loops" is 0 the sound is played once, if "Loops" is negative it repeats forever.

playAmbience(Identifier Type > String, Loops Type > Integer)

Plays the audio file in the ambience channel. It loops for the amount given. If "Loops" is 0 the sound is played once, if "Loops" is negative it repeats forever.

stopAmbience()

Stops the sound played in the ambience channel.

playMusic(Identifier Type > String, Loops Type > Integer)

Plays the audio file in the music channel. It loops for the amount given. If "Loops" is 0 the sound is played once, if "Loops" is negative it repeats forever.

stopMusic()

Stops the sound played in the music channel.

playSoundHandle(Identifier Type > String, Loops Type > Integer)

Plays the audio file in any available channel. It loops for the amount given. If "Loops" is 0 the sound is played once, if "Loops" is negative it repeats forever.
Returns an Audio > Audio Handle.

Audio Handle

stopAudioHandle(Handle Type > Integer)

Stops the sound associated with the given audio handle.
Does nothing if the handle is invalid.

setAudioHandleVolume(Handle Type > Integer, Volume Type > Float)

Sets the volume of the sound of the given audio handle. Must be between 0 and 1.
Does nothing if the handle is invalid.

fadeOutAudioHandle(Handle Type > Integer, Seconds Type > Float)

Fades out the sound of the given audio handle.
Does nothing if the handle is invalid.