Exemple #1
0
func alSourcefv(s Source, k int, v []float32) {
	C.alSourcefv(C.ALuint(s), C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Exemple #2
0
func (source Source) Sourcefv(param ALenum, values []float32) {
	C.alSourcefv(C.ALuint(source), C.ALenum(param), (*C.ALfloat)(&values[0]))
}
Exemple #3
0
func (source Source) SetDirection(val [3]float32) error {
	C.alSourcefv(source.source, C.AL_DIRECTION, (*C.ALfloat)(unsafe.Pointer(&val[0])))
	return GetError()
}
Exemple #4
0
func setSourcefv(s Source, param int, v []float32) {
	C.alSourcefv(C.ALuint(s), C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Exemple #5
0
func (source Source) SetVelocity(val [3]float32) error {
	C.alSourcefv(source.source, C.AL_VELOCITY, (*C.ALfloat)(unsafe.Pointer(&val[0])))
	return GetError()
}