diff options
-rw-r--r-- | src/crepe/Sound.cpp | 2 | ||||
-rw-r--r-- | src/crepe/Sound.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/crepe/Sound.cpp b/src/crepe/Sound.cpp index 09ffd5f..136a71d 100644 --- a/src/crepe/Sound.cpp +++ b/src/crepe/Sound.cpp @@ -16,7 +16,7 @@ Sound::Sound(const char * src) { } void Sound::load(std::unique_ptr<api::Resource> res) { - this->sample.load(this->res->canonical()); + this->sample.load(res->canonical()); } void Sound::play() { diff --git a/src/crepe/Sound.h b/src/crepe/Sound.h index 163c5b4..9da17b9 100644 --- a/src/crepe/Sound.h +++ b/src/crepe/Sound.h @@ -60,7 +60,6 @@ private: void load(std::unique_ptr<api::Resource> res); private: - std::unique_ptr<api::Resource> res; SoLoud::Wav sample; SoLoud::handle handle; }; |