aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/SoundSystem.h
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/crepe/SoundSystem.h
parent3cb7227c3c9678141ff74915331b706265c380cb (diff)
implement debug logging functions and fix sound system segfault
Diffstat (limited to 'src/crepe/SoundSystem.h')
-rw-r--r--src/crepe/SoundSystem.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/crepe/SoundSystem.h b/src/crepe/SoundSystem.h
index 23bb00a..515cb29 100644
--- a/src/crepe/SoundSystem.h
+++ b/src/crepe/SoundSystem.h
@@ -16,7 +16,13 @@ public:
private:
SoundSystem();
virtual ~SoundSystem();
- static SoundSystem instance;
+
+ // singleton
+ static SoundSystem & instance();
+ SoundSystem(const SoundSystem &) = delete;
+ SoundSystem(SoundSystem &&) = delete;
+ SoundSystem &operator=(const SoundSystem &) = delete;
+ SoundSystem &operator=(SoundSystem &&) = delete;
private:
SoLoud::Soloud engine;