aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/SoundSystem.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-28 17:07:56 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-28 17:07:56 +0200
commit3cb7227c3c9678141ff74915331b706265c380cb (patch)
treed47d662b4d26908b3d3d83f4a4df32a0cc489b72 /src/crepe/SoundSystem.h
parent506090032a07f2f3a74a44d8c8774cbdd252c947 (diff)
more WIP audio facade
Diffstat (limited to 'src/crepe/SoundSystem.h')
-rw-r--r--src/crepe/SoundSystem.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/crepe/SoundSystem.h b/src/crepe/SoundSystem.h
new file mode 100644
index 0000000..23bb00a
--- /dev/null
+++ b/src/crepe/SoundSystem.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <soloud.h>
+
+#include <memory>
+
+#include "Sound.h"
+
+namespace crepe {
+
+class SoundSystem {
+public:
+ static std::unique_ptr<Sound> sound(const std::string & res);
+ static std::unique_ptr<Sound> sound(std::unique_ptr<api::Resource> res);
+
+private:
+ SoundSystem();
+ virtual ~SoundSystem();
+ static SoundSystem instance;
+
+private:
+ SoLoud::Soloud engine;
+ friend class Sound;
+};
+
+}
+