remove SoundIo param from 2 API functions

closes #29
This commit is contained in:
Andrew Kelley 2016-10-23 14:28:54 -04:00
parent e8735fa443
commit 48681a11db
2 changed files with 4 additions and 4 deletions

View file

@ -722,10 +722,10 @@ SOUNDIO_EXPORT const char *soundio_strerror(int error);
SOUNDIO_EXPORT const char *soundio_backend_name(enum SoundIoBackend backend); SOUNDIO_EXPORT const char *soundio_backend_name(enum SoundIoBackend backend);
/// Returns the number of available backends. /// Returns the number of available backends.
SOUNDIO_EXPORT int soundio_backend_count(struct SoundIo *soundio); SOUNDIO_EXPORT int soundio_backend_count(void);
/// get the available backend at the specified index /// get the available backend at the specified index
/// (0 <= index < ::soundio_backend_count) /// (0 <= index < ::soundio_backend_count)
SOUNDIO_EXPORT enum SoundIoBackend soundio_get_backend(struct SoundIo *soundio, int index); SOUNDIO_EXPORT enum SoundIoBackend soundio_get_backend(int index);
/// Returns whether libsoundio was compiled with backend. /// Returns whether libsoundio was compiled with backend.
SOUNDIO_EXPORT bool soundio_have_backend(enum SoundIoBackend backend); SOUNDIO_EXPORT bool soundio_have_backend(enum SoundIoBackend backend);

View file

@ -693,11 +693,11 @@ bool soundio_have_backend(enum SoundIoBackend backend) {
return backend_init_fns[backend]; return backend_init_fns[backend];
} }
int soundio_backend_count(struct SoundIo *soundio) { int soundio_backend_count(void) {
return ARRAY_LENGTH(available_backends); return ARRAY_LENGTH(available_backends);
} }
enum SoundIoBackend soundio_get_backend(struct SoundIo *soundio, int index) { enum SoundIoBackend soundio_get_backend(int index) {
return available_backends[index]; return available_backends[index];
} }