Skip to content

Function Overview

WangleLine edited this page May 25, 2023 · 2 revisions

Update Functions

line_audio_update()

Call this function once, and only once, every frame. This handles fading sounds, loading & unloading of audiogroups, attaching emitters to objects and so on.

Sound Functions

line_audio_play(enum_index,[x=undefined],[y=undefined],[volume_mod=1],[pitch_mod=1],[falloff_mod=1])

This is the standard sound-playing function in LineAudio. Supply enum_index with an enum member as defined in the LineAudioDefintions script. If x and y are undefined, the sound will be played globally, which means that it has no falloff and can be heard everywhere in your game.

Music Functions

Miscellaneous Functions