Example #1
0
func alGetSourcefv(s Source, k int, v []float32) {
	C.alGetSourcefv(C.ALuint(s), C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Example #2
0
File: source.go Project: nzlov/goal
func (source Source) GetSourcefv(param ALenum, values []float32) {
	C.alGetSourcefv(C.ALuint(source), C.ALenum(param), (*C.ALfloat)(&values[0]))
}
Example #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()
}
Example #4
0
File: al.go Project: Miaque/mojo
func getSourcefv(s Source, param int, v []float32) {
	C.alGetSourcefv(C.ALuint(s), C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Example #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()
}