Documentation ¶
Index ¶
Constants ¶
View Source
const FADE_TIME float64 = 1.0
View Source
const MUS_VOL_SCALE = 0.6
View Source
const PLAYERS_PER_SOUND = 8
View Source
const (
SAMPLE_RATE = 44100
)
Variables ¶
View Source
var MuteMusic bool
View Source
var MuteSfx bool
Functions ¶
func PlaySoundAttenuated ¶
func PlaySoundAttenuated(name string, factor float64, src *vmath.Vec2f, listenerMin, listenerMax *vmath.Vec2f)
Plays a sound that gets quieter the farther it is from the camera
func PlaySoundVolume ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.