예제 #1
0
파일: listener.go 프로젝트: nzlov/goal
func GetListener3f(param ALenum) (value1, value2, value3 float32) {
	C.alGetListener3f(
		C.ALenum(param),
		(*C.ALfloat)(&value1),
		(*C.ALfloat)(&value2),
		(*C.ALfloat)(&value3),
	)
	return
}
예제 #2
0
func GetListenerVelocity3f() (float32, float32, float32, error) {
	var x, y, z float32
	C.alGetListener3f(C.AL_VELOCITY, (*C.ALfloat)((*C.float)(&x)), (*C.ALfloat)((*C.float)(&y)), (*C.ALfloat)((*C.float)(&z)))
	return x, y, z, GetError()
}
예제 #3
0
func GetListenerPosition3f() (float32, float32, float32, error) {
	var x, y, z float32
	C.alGetListener3f(C.AL_POSITION, (*C.ALfloat)((*C.float)(&x)), (*C.ALfloat)((*C.float)(&y)), (*C.ALfloat)((*C.float)(&z)))
	return x, y, z, GetError()
}