diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-29 17:22:58 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-29 17:22:58 +0200 |
commit | 90174919ba8c019d4b88915557be0adc3769b3e6 (patch) | |
tree | a89feb8c2137f4eefb22d5b09031e6826bbbfc72 /src/crepe/SoundSystem.cpp | |
parent | e4a3ef6e324acc8edf9f0797caa244967907a676 (diff) |
WIP cleanup (broken, but more like the class diagram)
Diffstat (limited to 'src/crepe/SoundSystem.cpp')
-rw-r--r-- | src/crepe/SoundSystem.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/crepe/SoundSystem.cpp b/src/crepe/SoundSystem.cpp index 29bd196..00f874c 100644 --- a/src/crepe/SoundSystem.cpp +++ b/src/crepe/SoundSystem.cpp @@ -1,7 +1,6 @@ #include "util/log.h" #include "SoundSystem.h" -#include <memory> using namespace crepe; @@ -10,16 +9,6 @@ SoundSystem & SoundSystem::instance() { return instance; } -std::unique_ptr<Sound> SoundSystem::sound(const std::string & src) { - auto res = std::make_unique<api::Resource>(src); - return SoundSystem::sound(std::move(res)); -} - -std::unique_ptr<Sound> SoundSystem::sound(std::unique_ptr<api::Resource> res) { - Sound * out = new Sound(std::move(res)); - return std::unique_ptr<Sound>(out); -} - SoundSystem::SoundSystem() { dbg_trace(); engine.init(); |