From 7ec392eda3345606f0de75a432954b221cee82ce Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 13 Nov 2024 15:40:01 +0100 Subject: add doxygen + check const correctness --- src/crepe/facade/Sound.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/crepe/facade/Sound.cpp') diff --git a/src/crepe/facade/Sound.cpp b/src/crepe/facade/Sound.cpp index 49fb8dc..a65b052 100644 --- a/src/crepe/facade/Sound.cpp +++ b/src/crepe/facade/Sound.cpp @@ -4,19 +4,20 @@ #include "SoundContext.h" using namespace crepe; +using namespace std; -Sound::Sound(std::unique_ptr res) { +Sound::Sound(unique_ptr res) { dbg_trace(); this->load(std::move(res)); } Sound::Sound(const char * src) { dbg_trace(); - this->load(std::make_unique(src)); + this->load(make_unique(src)); } -void Sound::load(std::unique_ptr res) { - this->sample.load(res->canonical()); +void Sound::load(unique_ptr res) { + this->sample.load(res->get_canonical().c_str()); } void Sound::play() { -- cgit v1.2.3