예제 #1
0
파일: al_pc.go 프로젝트: tanema/amore
func alListenerfv(k int, v []float32) {
	C.alListenerfv(C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
예제 #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()
}
예제 #3
0
func SetListenerVelocity(val [3]float32) error {
	C.alListenerfv(C.AL_VELOCITY, (*C.ALfloat)((*C.float)(&val[0])))
	return GetError()
}
예제 #4
0
func SetListenerPosition(val [3]float32) error {
	C.alListenerfv(C.AL_POSITION, (*C.ALfloat)((*C.float)(&val[0])))
	return GetError()
}
예제 #5
0
파일: listener.go 프로젝트: nzlov/goal
func Listenerfv(param ALenum, values []float32) {
	C.alListenerfv(C.ALenum(param), (*C.ALfloat)(&values[0]))
}
예제 #6
0
파일: al.go 프로젝트: Miaque/mojo
func setListenerfv(param int, v []float32) {
	C.alListenerfv(C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}