Closed gavv closed 1 month ago
Hi, I am interested in solving this issue.
Thanks, Leonardo! Be sure to pull fresh develop, it has some recent changes in IDevice.
Hi @gavv , what status code should it return in case the device does not close successfully? Or it always return StatusOK?
Hi @gavv , what status code should it return in case the device does not close successfully? Or it always return StatusOK?
Same as from write - ErrFile or ErrDevice depending on device type.
Implement explicit closing of devices & files.
sndio::IDevice is an interface implemented by audio devices and files and network senders and receivers. See doxygen. Currently devices perform closing in their destructor. We need to be able to do it explicitly before calling destructor. This is needed for #677.
Steps:
virtual status::StatusCode close() = 0
to sndio::IDeviceRelated: #703.