Skip to content

Sound COG Functions

Function List

PlaySoundThing

PlaySoundThing(Sound snd, Thing thing, float volume, float playMinRadius, float playMaxRadius, int playflags) -> int

StopSoundThing

StopSoundThing(Sound snd, Thing thing)

PlaySoundPos

PlaySoundPos(Sound snd, Vector vec, float volume, float minRadius, float maxRadius, int playflags) -> int

PlaySoundLocal

PlaySoundLocal(Sound snd, float volume, float pan, int playflags, int bWait) -> int

PlaySoundGlobal

PlaySoundGlobal(Sound snd, float volume, float pan, int flags, int bWait) -> int

StopSound

StopSound(int channelGUID, float secFadeTime)

LoadSound

LoadSound(string filename) -> int

PlaySoundClass

PlaySoundClass(Thing thing, int mode) -> int

StopSoundClass

StopSoundClass(Thing thing, int mode)

PlayVoiceMode

PlayVoiceMode(Thing thing, int mode)

ChangeSoundVol

ChangeSoundVol(int guid, float volume, float secFadeTime)

ChangeSoundPitch

ChangeSoundPitch(int guid, float pitch, float secFadeTime)

SectorSound

SectorSound(Sector sector, Sound snd, float volume)

GetSoundLen

GetSoundLen(Sound snd) -> float

WaitForSound

WaitForSound(int channel) -> int

StopAllSoundsThing

StopAllSoundsThing(Thing thing)