示例#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()
}