aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/SoundContext.h
diff options
context:
space:
mode:
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;
+};
+
+}
+