Sound
Source function static sound.getDuration() returns int
Source
Returns sound length in milliseconds.
Beware that sound lengths of game assets may differ between different locales,
and thus return a different duration.
If you use a async duration in a synced manner, it will cause a desync.
function static sound.isPlaying() returns boolean
Source
function static sound.play()
Source
function static sound.playPosition(int millisecs)
Source
Plays the sound, starting at the given position
function static sound.setChannel(int channel)
Source
function static sound.setConeAngles(real inside, real outside, int outsideVolume)
Source
function static sound.setCutoff(real cutoff)
Source
function static sound.setDuration(int dur)
Source
Sets the sound duration in milliseconds
function static sound.setPitch(real pitch)
Source
function static sound.setVolume(int volume)
Source
Sets the sound's volume [0-100]
function static sound.stop(boolean killWhenDone, boolean fadeOut)
Source