aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 16:42:21 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 16:42:21 +0100
commit9eff2e24fa4cf0ffad2b47cc922a6558bc1a9fa1 (patch)
treee673cba5f221523d37f51b67a155abfc0c415eb3 /src/crepe/facade
parentf7d70abf3fee5933034d93f594f898849c5273ad (diff)
`make format`
Diffstat (limited to 'src/crepe/facade')
-rw-r--r--src/crepe/facade/Sound.cpp9
-rw-r--r--src/crepe/facade/SoundContext.cpp5
2 files changed, 5 insertions, 9 deletions
diff --git a/src/crepe/facade/Sound.cpp b/src/crepe/facade/Sound.cpp
index 0df1f48..33a0c47 100644
--- a/src/crepe/facade/Sound.cpp
+++ b/src/crepe/facade/Sound.cpp
@@ -23,26 +23,25 @@ Sound::~Sound() { dbg_trace(); }
// ctx.engine.setLooping(this->handle, this->looping);
// }
// }
-//
+//
// void Sound::pause(SoundContext & ctx) {
// if (ctx.engine.getPause(this->handle)) return;
// ctx.engine.setPause(this->handle, true);
// }
-//
+//
// void Sound::rewind(SoundContext & ctx) {
// if (!ctx.engine.isValidVoiceHandle(this->handle)) return;
// ctx.engine.seek(this->handle, 0);
// }
-//
+//
// void Sound::set_volume(SoundContext & ctx, float volume) {
// this->volume = volume;
// if (!ctx.engine.isValidVoiceHandle(this->handle)) return;
// ctx.engine.setVolume(this->handle, this->volume);
// }
-//
+//
// void Sound::set_looping(SoundContext & ctx, bool looping) {
// this->looping = looping;
// if (!ctx.engine.isValidVoiceHandle(this->handle)) return;
// ctx.engine.setLooping(this->handle, this->looping);
// }
-
diff --git a/src/crepe/facade/SoundContext.cpp b/src/crepe/facade/SoundContext.cpp
index 3ae5956..470b3cc 100644
--- a/src/crepe/facade/SoundContext.cpp
+++ b/src/crepe/facade/SoundContext.cpp
@@ -21,9 +21,7 @@ Sound::Handle SoundContext::play(Sound & resource) {
};
}
-void SoundContext::stop(Sound::Handle & handle) {
- this->engine.stop(handle.handle);
-}
+void SoundContext::stop(Sound::Handle & handle) { this->engine.stop(handle.handle); }
void SoundContext::set_volume(Sound & resource, Sound::Handle & handle, float volume) {
this->engine.setVolume(handle.handle, volume);
@@ -33,4 +31,3 @@ void SoundContext::set_volume(Sound & resource, Sound::Handle & handle, float vo
void SoundContext::set_loop(Sound & resource, Sound::Handle & handle, bool loop) {
this->engine.setLooping(handle.handle, loop);
}
-