Exemplo n.º 1
0
func alListenerfv(k int, v []float32) {
	C.alListenerfv(C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Exemplo n.º 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()
}
Exemplo n.º 3
0
func SetListenerVelocity(val [3]float32) error {
	C.alListenerfv(C.AL_VELOCITY, (*C.ALfloat)((*C.float)(&val[0])))
	return GetError()
}
Exemplo n.º 4
0
func SetListenerPosition(val [3]float32) error {
	C.alListenerfv(C.AL_POSITION, (*C.ALfloat)((*C.float)(&val[0])))
	return GetError()
}
Exemplo n.º 5
0
func Listenerfv(param ALenum, values []float32) {
	C.alListenerfv(C.ALenum(param), (*C.ALfloat)(&values[0]))
}
Exemplo n.º 6
0
Arquivo: al.go Projeto: Miaque/mojo
func setListenerfv(param int, v []float32) {
	C.alListenerfv(C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}