예제 #1
0
파일: openal.go 프로젝트: krattai/monoflow
// 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)
	}
}
예제 #2
0
파일: openal.go 프로젝트: krattai/monoflow
func (l *soundListener) SetGain(gain float64) { al.Listenerf(al.GAIN, float32(gain)) }