MCPcopy
hub / github.com/g3n/engine / CloseDevice

Function CloseDevice

audio/al/al.go:356–364  ·  view source on GitHub ↗
(dev *Device)

Source from the content-addressed store, hash-verified

354}
355
356func CloseDevice(dev *Device) error {
357
358 cres := C.alcCloseDevice(dev.cdev)
359 if cres == C.ALC_TRUE {
360 delete(mapDevice, dev.cdev)
361 return nil
362 }
363 return fmt.Errorf("%s", errCodes[uint(C.alGetError())])
364}
365
366func CtxGetError(dev *Device) error {
367

Callers 1

RunMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected