diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-30 15:08:57 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-30 15:08:57 +0100 |
commit | 30e2b2b0cbb503d83a087d8d326940c3c4bc8fff (patch) | |
tree | e7332b214587a336a130b01e83ad368388fca516 /src/crepe/api/AudioSource.cpp | |
parent | e4be73051a68b552c44280bbe9836dd4f02972d8 (diff) |
fix audio system implementation
Diffstat (limited to 'src/crepe/api/AudioSource.cpp')
-rw-r--r-- | src/crepe/api/AudioSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/AudioSource.cpp b/src/crepe/api/AudioSource.cpp index c646aeb..cc70801 100644 --- a/src/crepe/api/AudioSource.cpp +++ b/src/crepe/api/AudioSource.cpp @@ -10,10 +10,10 @@ AudioSource::AudioSource(game_object_id_t id, const Asset & src) : void AudioSource::play(bool looping) { this->loop = looping; - this->playing = true; + this->oneshot_play = true; } void AudioSource::stop() { - this->playing = false; + this->oneshot_stop = true; } |