func (buf Buffer) GetChannels() (int, error) { var val C.ALint C.alGetBufferi(buf.buffer, C.AL_CHANNELS, &val) return int(C.int(val)), GetError() }
func (buf Buffer) GetSize() (int, error) { var val C.ALint C.alGetBufferi(buf.buffer, C.AL_SIZE, &val) return int(C.int(val)), GetError() }
func (buf Buffer) GetBitDepth() (int, error) { var val C.ALint C.alGetBufferi(buf.buffer, C.AL_BITS, &val) return int(C.int(val)), GetError() }
func (buf Buffer) GetFrequency() (int, error) { var val C.ALint C.alGetBufferi(buf.buffer, C.AL_FREQUENCY, &val) return int(C.int(val)), GetError() }
func alGetBufferi(b Buffer, k int) int32 { var v C.ALint C.alGetBufferi(C.ALuint(b), C.ALenum(k), &v) return int32(v) }
func (buffer Buffer) GetBufferi(param ALenum) (value int32) { C.alGetBufferi(C.ALuint(buffer), C.ALenum(param), (*C.ALint)(&value)) return }
func getBufferi(b Buffer, param int) int32 { var v C.ALint C.alGetBufferi(C.ALuint(b), C.ALenum(param), &v) return int32(v) }