fix extra functions and missing prototype

This commit is contained in:
Andrew Kelley 2015-07-23 11:56:05 -07:00
parent e7dc300cc6
commit 8177d2f46d
2 changed files with 3 additions and 10 deletions

View file

@ -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;
}

View file

@ -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);