From 8177d2f46d3c403cb47ca6913cf1d6230ecbefd2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 23 Jul 2015 11:56:05 -0700 Subject: [PATCH] fix extra functions and missing prototype --- src/soundio.cpp | 10 ---------- src/soundio.h | 3 +++ 2 files changed, 3 insertions(+), 10 deletions(-) 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);