SoundIo.on_backend_disconnect

Optional callback. Called when the backend disconnects. For example, when the JACK server shuts down. When this happens, listing devices and opening streams will always fail with SoundIoErrorBackendDisconnected. This callback is only called during a call to ::soundio_flush_events or ::soundio_wait_events. If you do not supply a callback, the default will crash your program with an error message. This callback is also called when the thread that retrieves device information runs into an unrecoverable condition such as running out of memory.

Possible errors: * #SoundIoErrorBackendDisconnected * #SoundIoErrorNoMem * #SoundIoErrorSystemResources * #SoundIoErrorOpeningDevice - unexpected problem accessing device information

struct SoundIo
extern (C) @nogc nothrow
void function(SoundIo*, int err) on_backend_disconnect;

Meta