Exemplo n.º 1
0
func alGetSourcefv(s Source, k int, v []float32) {
	C.alGetSourcefv(C.ALuint(s), C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Exemplo n.º 2
0
Arquivo: source.go Projeto: nzlov/goal
func (source Source) GetSourcefv(param ALenum, values []float32) {
	C.alGetSourcefv(C.ALuint(source), C.ALenum(param), (*C.ALfloat)(&values[0]))
}
Exemplo n.º 3
0
func (source Source) GetDirection() ([3]float32, error) {
	var val [3]float32
	C.alGetSourcefv(source.source, C.AL_DIRECTION, (*C.ALfloat)((*C.float)(&val[0])))
	return val, GetError()
}
Exemplo n.º 4
0
Arquivo: al.go Projeto: Miaque/mojo
func getSourcefv(s Source, param int, v []float32) {
	C.alGetSourcefv(C.ALuint(s), C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Exemplo n.º 5
0
func (source Source) GetVelocity() ([3]float32, error) {
	var val [3]float32
	C.alGetSourcefv(source.source, C.AL_VELOCITY, (*C.ALfloat)((*C.float)(&val[0])))
	return val, GetError()
}