Skip to content

Commit

Permalink
Merge pull request #335 from techflashYT/master
Browse files Browse the repository at this point in the history
Add missing WITH_RNNOISE gate (Fixes #334)
  • Loading branch information
ouwou authored Nov 2, 2024
2 parents 31d9b19 + f57ca38 commit a548196
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/windows/voice/voicewindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]() {
Expand Down

0 comments on commit a548196

Please sign in to comment.