mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-23 03:25:29 +00:00
fix extra functions and missing prototype
This commit is contained in:
parent
e7dc300cc6
commit
8177d2f46d
|
@ -286,16 +286,6 @@ struct SoundIoDevice *soundio_get_output_device(struct SoundIo *soundio, int ind
|
||||||
return device;
|
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) {
|
enum SoundIoDevicePurpose soundio_device_purpose(const struct SoundIoDevice *device) {
|
||||||
return device->purpose;
|
return device->purpose;
|
||||||
}
|
}
|
||||||
|
|
|
@ -413,6 +413,9 @@ int soundio_backend_count(struct SoundIo *soundio);
|
||||||
// (0 <= index < `soundio_backend_count`)
|
// (0 <= index < `soundio_backend_count`)
|
||||||
enum SoundIoBackend soundio_get_backend(struct SoundIo *soundio, int index);
|
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
|
// 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.
|
// might be called. This is the only time those callbacks will be called.
|
||||||
void soundio_flush_events(struct SoundIo *soundio);
|
void soundio_flush_events(struct SoundIo *soundio);
|
||||||
|
|
Loading…
Reference in a new issue