aboutsummaryrefslogtreecommitdiff
path: root/src/dummy_audio.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-29 16:15:49 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-29 16:15:49 +0200
commitfeea4cbb648d67e46b413880ddbf203c88c2a2b1 (patch)
tree7c3b6bfddfef49e42b7f64256e3c027c43744f8e /src/dummy_audio.cpp
parent3cb7227c3c9678141ff74915331b706265c380cb (diff)
implement debug logging functions and fix sound system segfault
Diffstat (limited to 'src/dummy_audio.cpp')
-rw-r--r--src/dummy_audio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dummy_audio.cpp b/src/dummy_audio.cpp
index 5e0000e..fb1e3ab 100644
--- a/src/dummy_audio.cpp
+++ b/src/dummy_audio.cpp
@@ -1,4 +1,5 @@
#include "crepe/SoundSystem.h"
+#include "crepe/util/log.h"
#include <chrono>
#include <thread>
@@ -8,6 +9,8 @@ using namespace std;
using namespace std::chrono_literals;
int main() {
+ dbg_trace();
+
auto bgm = SoundSystem::sound("../mwe/audio/bgm.ogg");
auto sfx1 = SoundSystem::sound("../mwe/audio/sfx1.wav");
auto sfx2 = SoundSystem::sound("../mwe/audio/sfx2.wav");