Simulate3dSound

Utilities View source
Simulate3dSound

Source on GitHub

Classes

Sim3DSound

public class Sim3DSound

Members:

  • setSoundPosition(vec2 pos)
  • setSoundPosition(unit u)
  • construct(sound s, real x, real y, real minDist, real maxDist, real distCutoff)
  • construct(sound s, unit u, real minDist, real maxDist, real distCutoff)

Functions

bindSoundToUnit

public function bindSoundToUnit(sound s, unit u, real minD, real maxD, real distCut) returns Sim3DSound

bindSoundToPoint

public function bindSoundToPoint(sound s, real x, real y, real minD, real maxD, real distCut) returns Sim3DSound

bindSoundToUnitForPlayer

public function bindSoundToUnitForPlayer(player p, sound s, unit u, real minD, real maxD, real distCut) returns Sim3DSound

bindSoundToPointForPlayer

public function bindSoundToPointForPlayer(player p, sound s, real x, real y, real minD, real maxD, real distCut) returns Sim3DSound