Example #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()
}
Example #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()
}
Example #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()
}
Example #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()
}
Example #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)
}
Example #6
0
File: buffer.go Project: nzlov/goal
func (buffer Buffer) GetBufferi(param ALenum) (value int32) {
	C.alGetBufferi(C.ALuint(buffer), C.ALenum(param), (*C.ALint)(&value))
	return
}
Example #7
0
File: al.go Project: Miaque/mojo
func getBufferi(b Buffer, param int) int32 {
	var v C.ALint
	C.alGetBufferi(C.ALuint(b), C.ALenum(param), &v)
	return int32(v)
}