aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Sound.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-29 17:22:58 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-29 17:22:58 +0200
commit90174919ba8c019d4b88915557be0adc3769b3e6 (patch)
treea89feb8c2137f4eefb22d5b09031e6826bbbfc72 /src/crepe/Sound.h
parente4a3ef6e324acc8edf9f0797caa244967907a676 (diff)
WIP cleanup (broken, but more like the class diagram)
Diffstat (limited to 'src/crepe/Sound.h')
-rw-r--r--src/crepe/Sound.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crepe/Sound.h b/src/crepe/Sound.h
index 333465b..163c5b4 100644
--- a/src/crepe/Sound.h
+++ b/src/crepe/Sound.h
@@ -9,8 +9,6 @@
namespace crepe {
-class SoundSystem;
-
class Sound {
public:
/**
@@ -54,15 +52,17 @@ public:
*/
void set_looping(bool looping);
-private:
- friend class SoundSystem;
+public:
+ Sound(const char * src);
Sound(std::unique_ptr<api::Resource> res);
private:
+ void load(std::unique_ptr<api::Resource> res);
+
+private:
std::unique_ptr<api::Resource> res;
SoLoud::Wav sample;
SoLoud::handle handle;
- bool paused;
};
}