diff --git a/src/soundio.cpp b/src/soundio.cpp index 36be267..0fe59d0 100644 --- a/src/soundio.cpp +++ b/src/soundio.cpp @@ -286,16 +286,6 @@ struct SoundIoDevice *soundio_get_output_device(struct SoundIo *soundio, int ind return device; } -// the name is the identifier for the device. UTF-8 encoded -const char *soundio_device_name(const struct SoundIoDevice *device) { - return device->name; -} - -// UTF-8 encoded -const char *soundio_device_description(const struct SoundIoDevice *device) { - return device->description; -} - enum SoundIoDevicePurpose soundio_device_purpose(const struct SoundIoDevice *device) { return device->purpose; } diff --git a/src/soundio.h b/src/soundio.h index dd620ec..80c1b33 100644 --- a/src/soundio.h +++ b/src/soundio.h @@ -413,6 +413,9 @@ int soundio_backend_count(struct SoundIo *soundio); // (0 <= index < `soundio_backend_count`) enum SoundIoBackend soundio_get_backend(struct SoundIo *soundio, int index); +// Returns whether libsoundio was compiled with `backend`. +bool soundio_have_backend(enum SoundIoBackend backend); + // when you call this, the on_devices_change and on_events_signal callbacks // might be called. This is the only time those callbacks will be called. void soundio_flush_events(struct SoundIo *soundio);