aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/SoundContext.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-01 17:23:33 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-01 17:23:33 +0200
commitfe9bf1344ceae0fac9144e4a28fdcdbcb2267850 (patch)
tree95b48799ed8c062839361b61afdb596b189e2da3 /src/crepe/SoundContext.h
parent311e98572c26750e4a4695079fa80ca5648d109e (diff)
rename SoundSystem to SoundContext (1/2)
Diffstat (limited to 'src/crepe/SoundContext.h')
-rw-r--r--src/crepe/SoundContext.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/crepe/SoundContext.h b/src/crepe/SoundContext.h
new file mode 100644
index 0000000..34dd6c5
--- /dev/null
+++ b/src/crepe/SoundContext.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <soloud.h>
+
+#include "Sound.h"
+
+namespace crepe {
+
+class SoundSystem {
+private:
+ SoundSystem();
+ virtual ~SoundSystem();
+
+ // singleton
+ static SoundSystem & get_instance();
+ SoundSystem(const SoundSystem &) = delete;
+ SoundSystem(SoundSystem &&) = delete;
+ SoundSystem &operator=(const SoundSystem &) = delete;
+ SoundSystem &operator=(SoundSystem &&) = delete;
+
+private:
+ SoLoud::Soloud engine;
+ friend class Sound;
+};
+
+}
+