Closes the audio device and frees the memory allocated by the device.
bool close(Device device) => _close(device._device) != 0;