diff options
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object.c b/src/object.c index 3c8c84a..39a1edb 100644 --- a/src/object.c +++ b/src/object.c @@ -7,24 +7,24 @@ void xas_object_init(xas_object *object) { memset(object, '\0', sizeof(xas_object)); } -int xas_object_start(xas_object *object) { +int xas_object_start(xas_object *object, size_t index) { if (object->start == NULL) { errno = ENOSYS; return -1; } - return object->start(object); + return object->start(object, index); } -int xas_object_stop(xas_object *object) { +int xas_object_stop(xas_object *object, size_t index) { if (object->stop == NULL) { errno = ENOSYS; return -1; } - return object->stop(object); + return object->stop(object, index); } int xas_object_set_gain(xas_object *object, float gain) { |