aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexandre Ratchov <[email protected]>2021-06-26 10:04:07 +0200
committerPaul Adenot <[email protected]>2021-07-05 08:44:33 +0200
commit275de804d1abea9136d6e86eda54344293c08c09 (patch)
tree91a57c7a664b8c8e5a5f7dc270adb609578f36a3
parent5ebe69cb3a1c7b022af85c04187456948b209d4b (diff)
downloadcubeb-275de804d1abea9136d6e86eda54344293c08c09.tar.gz
cubeb-275de804d1abea9136d6e86eda54344293c08c09.zip
sndio: default max_channels to 8 for OUTPUT and 2 for INPUT
cf https://bugzilla.mozilla.org/show_bug.cgi?id=1633769
-rw-r--r--src/cubeb_sndio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_sndio.c b/src/cubeb_sndio.c
index dfa4137..93af1d2 100644
--- a/src/cubeb_sndio.c
+++ b/src/cubeb_sndio.c
@@ -626,7 +626,7 @@ sndio_enumerate_devices(cubeb *context, cubeb_device_type type,
device->preferred = CUBEB_DEVICE_PREF_ALL;
device->format = CUBEB_DEVICE_FMT_S16NE;
device->default_format = CUBEB_DEVICE_FMT_S16NE;
- device->max_channels = 16;
+ device->max_channels = (type == CUBEB_DEVICE_TYPE_INPUT) ? 2 : 8;
device->default_rate = 48000;
device->min_rate = 4000;
device->max_rate = 192000;