Limit playback to 8 and recording to 2 channels.

This fixes certain video-conferencing sites. Related discussion is
here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1633769

ok sthen, landry
This commit is contained in:
ratchov 2020-04-30 12:54:28 +00:00
parent 9675445bb5
commit 8f6b4efc57
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.420 2020/04/22 14:05:47 landry Exp $
# $OpenBSD: Makefile,v 1.421 2020/04/30 12:54:28 ratchov Exp $
COMMENT = Mozilla web browser
ONLY_FOR_ARCHS = amd64 i386 aarch64
@ -9,7 +9,7 @@ MOZILLA_VERSION = 75.0
MOZILLA_BRANCH = release
MOZILLA_PROJECT = firefox
MOZILLA_CODENAME = browser
REVISION = 0
REVISION = 1
WRKDIST = ${WRKDIR}/${MOZILLA_DIST}-${MOZILLA_DIST_VERSION:C/b[0-9]*//}
HOMEPAGE = https://www.mozilla.org/firefox/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-media_libcubeb_src_cubeb_sndio_c,v 1.9 2020/04/30 12:54:28 ratchov Exp $
Index: media/libcubeb/src/cubeb_sndio.c
--- media/libcubeb/src/cubeb_sndio.c.orig
+++ media/libcubeb/src/cubeb_sndio.c
@@ -626,7 +626,7 @@ sndio_enumerate_devices(cubeb *context, cubeb_device_t
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;