From 9d58e897fb68ab8dd001a5085cde2fae4634c274 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 13 Nov 2024 12:33:59 +0100 Subject: move some files from `loek/tests` to `loek/audio` --- src/crepe/facade/Sound.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/crepe/facade/Sound.h') diff --git a/src/crepe/facade/Sound.h b/src/crepe/facade/Sound.h index e5b2f19..183bd7c 100644 --- a/src/crepe/facade/Sound.h +++ b/src/crepe/facade/Sound.h @@ -4,13 +4,11 @@ #include #include -#include "../Resource.h" +#include "../Asset.h" namespace crepe { -class SoundContext; - -class Sound : public Resource { +class Sound { public: /** * \brief Pause this sample @@ -66,13 +64,15 @@ public: bool get_looping() const { return this->looping; } public: - Sound(SoundContext & ctx); - std::unique_ptr clone(const Asset & src) const override; + Sound(const char * src); + Sound(std::unique_ptr res); + +private: + void load(std::unique_ptr res); private: SoLoud::Wav sample; SoLoud::handle handle; - SoundContext & context; float volume = 1.0f; bool looping = false; -- cgit v1.2.3