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.
public function sound.setDuration(int dur)
Sets the sound duration in milliseconds
public function sound.play()
public function sound.stop(boolean killWhenDone, boolean fadeOut)
public function sound.setChannel(int channel)
public function sound.setPitch(real pitch)
public function sound.setVolume(int volume)
Sets the sound’s volume [0-100]
public function sound.setConeAngles(real inside, real outside, int outsideVolume)
public function sound.setCutoff(real cutoff)
public function sound.playPosition(int millisecs)
Plays the sound, starting at the given position
public function sound.getDuration() returns int
public function sound.isPlaying() returns boolean
public function sound.triggerWaitForSound(real offset)
public function sound.setSoundParamsFromLabel(string soundLabel)
public function sound.setSoundDistances(real minDist, real maxDist)
public function sound.setSoundConeOrientation(real x, real y, real z)
public function sound.setSoundPosition(real x, real y, real z)
public function sound.setSoundVelocity(real x, real y, real z)
public function sound.attachSoundToUnit(unit whichUnit)
public function sound.startSoundEx(boolean fadeIn)
public function sound.registerStackedSound(boolean byPosition, real rectwidth, real rectheight)
public function sound.unregisterStackedSound(boolean byPosition, real rectwidth, real rectheight)
public function sound.setSoundFacialAnimationLabel(string animationLabel) returns boolean
public function sound.setSoundFacialAnimationGroupLabel(string groupLabel) returns boolean
public function sound.setSoundFacialAnimationSetFilepath(string animationSetFilepath) returns boolean
public function sound.setDialogueSpeakerNameKey(string speakerName) returns boolean
public function sound.setDialogueTextKey(string dialogueText) returns boolean