Пример #1
0
func alSourcefv(s Source, k int, v []float32) {
	C.alSourcefv(C.ALuint(s), C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Пример #2
0
func (source Source) Sourcefv(param ALenum, values []float32) {
	C.alSourcefv(C.ALuint(source), C.ALenum(param), (*C.ALfloat)(&values[0]))
}
Пример #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()
}
Пример #4
0
Файл: al.go Проект: Miaque/mojo
func setSourcefv(s Source, param int, v []float32) {
	C.alSourcefv(C.ALuint(s), C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&v[0])))
}
Пример #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()
}