soundio_input_device_count

When you call ::soundio_flush_events, a snapshot of all device state is saved and these functions merely access the snapshot data. When you want to check for new devices, call ::soundio_flush_events. Or you can call ::soundio_wait_events to block until devices change. If an error occurs scanning devices in a background thread, SoundIo::on_backend_disconnect is called with the error code. Get the number of input devices. Returns -1 if you never called ::soundio_flush_events.

extern (C) @nogc nothrow
int
soundio_input_device_count

Meta