Example #1
0
File: alc.go Project: Miaque/mojo
// Close closes the device.
func (d *Device) Close() bool {
	return C.alcCloseDevice(d.d) == 1
}
Example #2
0
File: alc.go Project: nzlov/goal
func (device *Device) CloseDevice() bool {
	return goBool(C.alcCloseDevice((*C.ALCdevice)(device)))
}
Example #3
0
func (self *Device) CloseDevice() bool {
	//TODO: really a method? or not?
	return C.alcCloseDevice(self.handle) != 0
}
Example #4
0
func alcCloseDevice(d unsafe.Pointer) bool {
	dev := (*C.ALCdevice)(d)
	return C.alcCloseDevice(dev) == C.ALC_TRUE
}
Example #5
0
func (dev Device) Close() error {
	C.alcCloseDevice(dev.device)
	return GetError()
}