summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/audio/ma_impl.cpp2
-rw-r--r--src/audio/manager.cpp1
-rw-r--r--src/notifications/notifier_gio.cpp3
3 files changed, 2 insertions, 4 deletions
diff --git a/src/audio/ma_impl.cpp b/src/audio/ma_impl.cpp
new file mode 100644
index 0000000..662e2b2
--- /dev/null
+++ b/src/audio/ma_impl.cpp
@@ -0,0 +1,2 @@
+#define MINIAUDIO_IMPLEMENTATION
+#include <miniaudio.h>
diff --git a/src/audio/manager.cpp b/src/audio/manager.cpp
index 618773d..6e85ed8 100644
--- a/src/audio/manager.cpp
+++ b/src/audio/manager.cpp
@@ -9,7 +9,6 @@
#include <array>
#include <glibmm/main.h>
#include <spdlog/spdlog.h>
-#define MINIAUDIO_IMPLEMENTATION
#include <miniaudio.h>
#include <opus.h>
#include <cstring>
diff --git a/src/notifications/notifier_gio.cpp b/src/notifications/notifier_gio.cpp
index 22d4c87..128167f 100644
--- a/src/notifications/notifier_gio.cpp
+++ b/src/notifications/notifier_gio.cpp
@@ -1,9 +1,6 @@
#include "notifier.hpp"
#include <giomm/notification.h>
-#define MINIAUDIO_IMPLEMENTATION
-#include <miniaudio.h>
-
Notifier::Notifier() {
#ifdef ENABLE_NOTIFICATION_SOUNDS
if (ma_engine_init(nullptr, &m_engine) != MA_SUCCESS) {