Exemple #1
0
func (buf Buffer) GetChannels() (int, error) {
	var val C.ALint
	C.alGetBufferi(buf.buffer, C.AL_CHANNELS, &val)
	return int(C.int(val)), GetError()
}
Exemple #2
0
func (buf Buffer) GetSize() (int, error) {
	var val C.ALint
	C.alGetBufferi(buf.buffer, C.AL_SIZE, &val)
	return int(C.int(val)), GetError()
}
Exemple #3
0
func (buf Buffer) GetBitDepth() (int, error) {
	var val C.ALint
	C.alGetBufferi(buf.buffer, C.AL_BITS, &val)
	return int(C.int(val)), GetError()
}
Exemple #4
0
func (buf Buffer) GetFrequency() (int, error) {
	var val C.ALint
	C.alGetBufferi(buf.buffer, C.AL_FREQUENCY, &val)
	return int(C.int(val)), GetError()
}
Exemple #5
0
func alGetBufferi(b Buffer, k int) int32 {
	var v C.ALint
	C.alGetBufferi(C.ALuint(b), C.ALenum(k), &v)
	return int32(v)
}
Exemple #6
0
func (buffer Buffer) GetBufferi(param ALenum) (value int32) {
	C.alGetBufferi(C.ALuint(buffer), C.ALenum(param), (*C.ALint)(&value))
	return
}
Exemple #7
0
func getBufferi(b Buffer, param int) int32 {
	var v C.ALint
	C.alGetBufferi(C.ALuint(b), C.ALenum(param), &v)
	return int32(v)
}