diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-01 15:21:31 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-01 15:21:31 +0200 |
commit | de288a859a631acf6aac10fad825cafaa3744dc9 (patch) | |
tree | 9e32e46498256c5215cbe4f293f99c3bf95128e2 /src/crepe/Sound.cpp | |
parent | 90174919ba8c019d4b88915557be0adc3769b3e6 (diff) |
fix audio segfault
Diffstat (limited to 'src/crepe/Sound.cpp')
-rw-r--r-- | src/crepe/Sound.cpp | 2 |
1 files changed, 1 insertions, 1 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() { |