Exemplo n.º 1
0
func alGetSourcef(s Source, k int) float32 {
	var v C.ALfloat
	C.alGetSourcef(C.ALuint(s), C.ALenum(k), &v)
	return float32(v)
}
Exemplo n.º 2
0
Arquivo: al.go Projeto: Miaque/mojo
func getSourcef(s Source, param int) float32 {
	var v C.ALfloat
	C.alGetSourcef(C.ALuint(s), C.ALenum(param), &v)
	return float32(v)
}
Exemplo n.º 3
0
Arquivo: source.go Projeto: nzlov/goal
/*
 * Get Source parameters
 */
func (source Source) GetSourcef(param ALenum) (value float32) {
	C.alGetSourcef(
		C.ALuint(source), C.ALenum(param),
		(*C.ALfloat)(&value))
	return
}
Exemplo n.º 4
0
func (source Source) GetConeInnerAngle() (float32, error) {
	var val float32
	C.alGetSourcef(source.source, C.AL_CONE_INNER_ANGLE, (*C.ALfloat)((*C.float)(&val)))
	return val, GetError()
}
Exemplo n.º 5
0
func (source Source) GetReferenceDistance() (float32, error) {
	var val float32
	C.alGetSourcef(source.source, C.AL_REFERENCE_DISTANCE, (*C.ALfloat)((*C.float)(&val)))
	return val, GetError()
}
Exemplo n.º 6
0
func (source Source) GetConeOuterGain() (float32, error) {
	var val float32
	C.alGetSourcef(source.source, C.AL_CONE_OUTER_GAIN, (*C.ALfloat)((*C.float)(&val)))
	return val, GetError()
}
Exemplo n.º 7
0
func (source Source) GetRolloff() (float32, error) {
	var val float32
	C.alGetSourcef(source.source, C.AL_ROLLOFF_FACTOR, (*C.ALfloat)((*C.float)(&val)))
	return val, GetError()
}
Exemplo n.º 8
0
func (source Source) GetMaxDistance() (float32, error) {
	var val float32
	C.alGetSourcef(source.source, C.AL_MAX_DISTANCE, (*C.ALfloat)((*C.float)(&val)))
	return val, GetError()
}
Exemplo n.º 9
0
func (source Source) GetMaxGain() (float32, error) {
	var val float32
	C.alGetSourcef(source.source, C.AL_MAX_GAIN, (*C.ALfloat)((*C.float)(&val)))
	return val, GetError()
}
Exemplo n.º 10
0
func (source Source) GetPitch() (float32, error) {
	var val float32
	C.alGetSourcef(source.source, C.AL_PITCH, (*C.ALfloat)((*C.float)(&val)))
	return val, GetError()
}