diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 12:55:15 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 12:55:15 +0200 |
commit | 02d658a7ed92bacfdaed587102f0d2e5f6c5dc01 (patch) | |
tree | 1195a0a46b9ce4af470652fecd5c3a3a917c2c58 /src/crepe/SoundContext.h | |
parent | b649adda67ed52c2e3bdcd5aa2cb4b9b0954cf16 (diff) | |
parent | b5a5d9b1d4725f3001486c9bbd69263ed0918303 (diff) |
Merge branch 'loek/cleanup' into loek/scripts
Diffstat (limited to 'src/crepe/SoundContext.h')
-rw-r--r-- | src/crepe/SoundContext.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/crepe/SoundContext.h b/src/crepe/SoundContext.h new file mode 100644 index 0000000..090966d --- /dev/null +++ b/src/crepe/SoundContext.h @@ -0,0 +1,26 @@ +#pragma once + +#include <soloud.h> + +#include "Sound.h" + +namespace crepe { + +class SoundContext { +private: + SoundContext(); + virtual ~SoundContext(); + + // singleton + static SoundContext & get_instance(); + SoundContext(const SoundContext &) = delete; + SoundContext(SoundContext &&) = delete; + SoundContext & operator=(const SoundContext &) = delete; + SoundContext & operator=(SoundContext &&) = delete; + +private: + SoLoud::Soloud engine; + friend class Sound; +}; + +} // namespace crepe |