Example #1
0
func alListenerfv(k int, v []float32) {
	C.alListenerfv(C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Example #2
0
func SetListenerOrientation(at, up [3]float32) error {
	tmp := [2][3]float32{at, up}
	C.alListenerfv(C.AL_ORIENTATION, (*C.ALfloat)(unsafe.Pointer(&tmp[0][0])))
	return GetError()
}
Example #3
0
func SetListenerVelocity(val [3]float32) error {
	C.alListenerfv(C.AL_VELOCITY, (*C.ALfloat)((*C.float)(&val[0])))
	return GetError()
}
Example #4
0
func SetListenerPosition(val [3]float32) error {
	C.alListenerfv(C.AL_POSITION, (*C.ALfloat)((*C.float)(&val[0])))
	return GetError()
}
Example #5
0
func Listenerfv(param ALenum, values []float32) {
	C.alListenerfv(C.ALenum(param), (*C.ALfloat)(&values[0]))
}
Example #6
0
File: al.go Project: Miaque/mojo
func setListenerfv(param int, v []float32) {
	C.alListenerfv(C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}