Exemple #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)
}
Exemple #2
0
func getSourcef(s Source, param int) float32 {
	var v C.ALfloat
	C.alGetSourcef(C.ALuint(s), C.ALenum(param), &v)
	return float32(v)
}
Exemple #3
0
/*
 * Get Source parameters
 */
func (source Source) GetSourcef(param ALenum) (value float32) {
	C.alGetSourcef(
		C.ALuint(source), C.ALenum(param),
		(*C.ALfloat)(&value))
	return
}
Exemple #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()
}
Exemple #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()
}
Exemple #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()
}
Exemple #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()
}
Exemple #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()
}
Exemple #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()
}
Exemple #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()
}