Mumble picks up rnnoise iff present, so enable it explicitly and provide
users with decent noise suppression.

Tested successfully with artifical noise, both in chats and through
Mumble's recording feature.

OK once rnnoise is committed?

Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/mumble/Makefile,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile
--- Makefile    22 Nov 2021 13:55:54 -0000      1.56
+++ Makefile    15 Dec 2021 18:59:40 -0000
@@ -7,6 +7,7 @@ VERSION =               1.3.4
 DISTNAME =             mumble-${VERSION}
 PKGNAME-server =       murmur-${VERSION}
 
+REVISION-main =                0
 REVISION-server =      0
 
 CATEGORIES =           audio net
@@ -22,7 +23,7 @@ MAINTAINER =          Klemens Nanni <kn@openbsd.
 
 WANTLIB-main += ${COMPILER_LIBCXX} GL Qt5Core Qt5DBus Qt5Gui Qt5Network
 WANTLIB-main += Qt5Sql Qt5Svg Qt5Widgets Qt5Xml X11 Xi c crypto
-WANTLIB-main += m opus portaudio protobuf sndfile speex speexdsp ssl
+WANTLIB-main += m opus portaudio protobuf rnnoise sndfile speex speexdsp ssl
 WANTLIB-server += ${COMPILER_LIBCXX} Qt5Core Qt5DBus Qt5Network Qt5Sql
 WANTLIB-server += Qt5Xml c crypto m protobuf ssl
 
@@ -37,6 +38,7 @@ BUILD_DEPENDS =               devel/boost
 LIB_DEPENDS-main =     audio/libsndfile>=1.0.25p0 \
                        audio/opus \
                        audio/portaudio-svn \
+                       audio/rnnoise \
                        audio/speex \
                        devel/protobuf \
                        x11/qt5/qtsvg
@@ -55,6 +57,7 @@ MODQMAKE_ARGS =               MUMBLE_PREFIX=${PREFIX}
                        CONFIG+=no-ice \
                        CONFIG+=no-bonjour \
                        CONFIG+=no-bundled-opus \
+                       CONFIG+=no-bundled-rnnoise \
                        CONFIG+=no-bundled-speex \
                        CONFIG+=no-crash-report \
                        CONFIG+=no-embed-qt-translations \
Index: patches/patch-src_mumble_AudioInput_cpp
===================================================================
RCS file: patches/patch-src_mumble_AudioInput_cpp
diff -N patches/patch-src_mumble_AudioInput_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_mumble_AudioInput_cpp     15 Dec 2021 18:59:15 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+a8e0797f5 "FIX(client): Update rnnoise-src submodule";  remove with next update
+
+Index: src/mumble/AudioInput.cpp
+--- src/mumble/AudioInput.cpp.orig
++++ src/mumble/AudioInput.cpp
+@@ -106,7 +106,7 @@ AudioInput::AudioInput() : opusBuffer(g.s.iFramesPerPa
+ #endif
+ 
+ #ifdef USE_RNNOISE
+-      denoiseState = rnnoise_create();
++      denoiseState = rnnoise_create(nullptr);
+ #endif
+ 
+       qWarning("AudioInput: %d bits/s, %d hz, %d sample", iAudioQuality, 
iSampleRate, iFrameSize);

Reply via email to