From d30be3326d43aa57760fdcbc6b4021b3570dc4a3 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 29 Apr 2023 21:27:16 -0400 Subject: make standalone file for miniaudio implementation --- src/audio/ma_impl.cpp | 2 ++ src/audio/manager.cpp | 1 - src/notifications/notifier_gio.cpp | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 src/audio/ma_impl.cpp 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 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 #include #include -#define MINIAUDIO_IMPLEMENTATION #include #include #include 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 -#define MINIAUDIO_IMPLEMENTATION -#include - Notifier::Notifier() { #ifdef ENABLE_NOTIFICATION_SOUNDS if (ma_engine_init(nullptr, &m_engine) != MA_SUCCESS) { -- cgit v1.2.3