make standalone file for miniaudio implementation

This commit is contained in:
ouwou
2023-04-29 21:27:16 -04:00
parent a5d74e0a89
commit d30be3326d
3 changed files with 2 additions and 4 deletions

2
src/audio/ma_impl.cpp Normal file
View File

@@ -0,0 +1,2 @@
#define MINIAUDIO_IMPLEMENTATION
#include <miniaudio.h>

View File

@@ -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>

View File

@@ -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) {