From f57ca38a967492c62d054cee89c122b26e357557 Mon Sep 17 00:00:00 2001 From: techflashYT Date: Wed, 30 Oct 2024 15:45:15 -0700 Subject: [PATCH] add missing WITH_RNNOISE gate (#334) --- src/windows/voice/voicewindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/windows/voice/voicewindow.cpp b/src/windows/voice/voicewindow.cpp index e59705a2..a9e9682e 100644 --- a/src/windows/voice/voicewindow.cpp +++ b/src/windows/voice/voicewindow.cpp @@ -115,10 +115,12 @@ VoiceWindow::VoiceWindow(Snowflake channel_id) UpdateVADParamValue(); }); +#ifdef WITH_RNNOISE m_noise_suppression.set_active(audio.GetSuppressNoise()); m_noise_suppression.signal_toggled().connect([this]() { Abaddon::Get().GetAudio().SetSuppressNoise(m_noise_suppression.get_active()); }); +#endif m_mix_mono.set_active(audio.GetMixMono()); m_mix_mono.signal_toggled().connect([this]() {