summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/discord/snowflake.hpp2
-rw-r--r--src/util.hpp2
-rw-r--r--src/windows/voice/voicewindow.cpp2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/discord/snowflake.hpp b/src/discord/snowflake.hpp
index 68cb5ea..2208f29 100644
--- a/src/discord/snowflake.hpp
+++ b/src/discord/snowflake.hpp
@@ -44,7 +44,7 @@ private:
template<>
struct fmt::formatter<Snowflake> : fmt::formatter<std::string> {
- auto format(Snowflake id, format_context &ctx) -> decltype(ctx.out()) {
+ auto format(Snowflake id, format_context &ctx) const -> decltype(ctx.out()) {
return format_to(ctx.out(), "[id: {}]", static_cast<uint64_t>(id));
}
};
diff --git a/src/util.hpp b/src/util.hpp
index 4024e34..072a8e2 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -11,7 +11,7 @@
#include <regex>
#include <mutex>
#include <condition_variable>
-#include <glibconfig.h>
+#include <glib.h>
#include <optional>
#include <type_traits>
diff --git a/src/windows/voice/voicewindow.cpp b/src/windows/voice/voicewindow.cpp
index e59705a..a9e9682 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]() {