示例#1
0
文件: al_pc.go 项目: tanema/amore
func alGetSourcef(s Source, k int) float32 {
	var v C.ALfloat
	C.alGetSourcef(C.ALuint(s), C.ALenum(k), &v)
	return float32(v)
}
示例#2
0
文件: al.go 项目: 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)
}
示例#3
0
文件: source.go 项目: 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
}
示例#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()
}
示例#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()
}
示例#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()
}
示例#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()
}
示例#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()
}
示例#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()
}
示例#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()
}