// Mute turns the listener gain on/off. func (a *openal) Mute(mute bool) { if mute { al.Listenerf(al.GAIN, 0.0) } else { al.Listenerf(al.GAIN, 1.0) } }
func (l *soundListener) SetGain(gain float64) { al.Listenerf(al.GAIN, float32(gain)) }