aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SoundContext.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 12:33:59 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 12:33:59 +0100
commit9d58e897fb68ab8dd001a5085cde2fae4634c274 (patch)
treeb70c33c6343be56a536c0b639435a45a1d2429ed /src/crepe/facade/SoundContext.h
parent87c74782e486647c46f9ca4d2f857094006e563c (diff)
move some files from `loek/tests` to `loek/audio`
Diffstat (limited to 'src/crepe/facade/SoundContext.h')
-rw-r--r--src/crepe/facade/SoundContext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/facade/SoundContext.h b/src/crepe/facade/SoundContext.h
index 8d9e396..d3123d2 100644
--- a/src/crepe/facade/SoundContext.h
+++ b/src/crepe/facade/SoundContext.h
@@ -7,10 +7,12 @@
namespace crepe {
class SoundContext {
-public:
+private:
SoundContext();
virtual ~SoundContext();
+ // singleton
+ static SoundContext & get_instance();
SoundContext(const SoundContext &) = delete;
SoundContext(SoundContext &&) = delete;
SoundContext & operator=(const SoundContext &) = delete;
@@ -18,7 +20,6 @@ public:
private:
SoLoud::Soloud engine;
- //! Sound directly calls methods on \c engine
friend class Sound;
};