func (device *Device) GetIntegerv(param ALCenum, data []int32) { C.alcGetIntegerv( (*C.ALCdevice)(device), C.ALCenum(param), (C.ALCsizei)(len(data)), (*C.ALCint)(&data[0]), ) }
// Temporary, I have no idea what format this comes out in. // After I do I'll make something more sane func (dev Device) Attributes(size int) ([]int, error) { dest := make([]C.int, size) C.alcGetIntegerv(dev.device, C.ALC_ALL_ATTRIBUTES, C.ALCsizei(size), (*C.ALCint)(&dest[0])) toReturn := make([]int, size) for i, dat := range dest { toReturn[i] = int(dat) } return toReturn, GetError() }
func (dev Device) AttributesSize() (int, error) { var dest *C.int C.alcGetIntegerv(dev.device, C.ALC_ATTRIBUTES_SIZE, C.ALCsizei(1), (*C.ALCint)(dest)) return int(*dest), GetError() }
func (dev Device) MinorVersion() (int, error) { var dest *C.int C.alcGetIntegerv(dev.device, C.ALC_MINOR_VERSION, C.ALCsizei(1), (*C.ALCint)(dest)) return int(*dest), GetError() }