// Close closes the device. func (d *Device) Close() bool { return C.alcCloseDevice(d.d) == 1 }
func (device *Device) CloseDevice() bool { return goBool(C.alcCloseDevice((*C.ALCdevice)(device))) }
func (self *Device) CloseDevice() bool { //TODO: really a method? or not? return C.alcCloseDevice(self.handle) != 0 }
func alcCloseDevice(d unsafe.Pointer) bool { dev := (*C.ALCdevice)(d) return C.alcCloseDevice(dev) == C.ALC_TRUE }
func (dev Device) Close() error { C.alcCloseDevice(dev.device) return GetError() }