diff options
author | Matthew Gregan <[email protected]> | 2016-01-21 13:59:36 +1300 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2016-01-21 13:59:36 +1300 |
commit | ff08f6601f7bfefafdd364cf11a621f6e063dc9b (patch) | |
tree | 1091824bfc9eeaae4164c277e9b3ed776353ee39 /src/cubeb_sndio.c | |
parent | d29ab0efd861eb9bb6bf3e5ace179dd92820110c (diff) | |
download | cubeb-ff08f6601f7bfefafdd364cf11a621f6e063dc9b.tar.gz cubeb-ff08f6601f7bfefafdd364cf11a621f6e063dc9b.zip |
cubeb_stream_init should take a cubeb_devid rather than a char const *.
Diffstat (limited to 'src/cubeb_sndio.c')
-rw-r--r-- | src/cubeb_sndio.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cubeb_sndio.c b/src/cubeb_sndio.c index be092e6..66e5838 100644 --- a/src/cubeb_sndio.c +++ b/src/cubeb_sndio.c @@ -173,9 +173,9 @@ static int sndio_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_name, - char const * input_device_name, + cubeb_devid input_device, cubeb_stream_params * input_stream_params, - char const * output_device_name, + cubeb_devid output_device, cubeb_stream_params * output_stream_params, unsigned int latency, cubeb_data_callback data_callback, @@ -187,6 +187,12 @@ sndio_stream_init(cubeb * context, DPR("sndio_stream_init(%s)\n", stream_name); size_t size; + assert(!input_stream_params && "not supported."); + if (input_device || output_device) { + /* Device selection not yet implemented. */ + return CUBEB_ERROR_DEVICE_UNAVAILABLE; + } + s = malloc(sizeof(cubeb_stream)); if (s == NULL) return CUBEB_ERROR; |