summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-11-12 08:56:19 +0100
committerGitHub <noreply@github.com>2018-11-12 08:56:19 +0100
commit85f0ce40e103c2c6b0a495f25d8f2e8e177c2091 (patch)
treef397c7de7ba48daca9f42b62b8ded23b56d3f375
parentd1858cd7291ca1b17b8bf56260152e7110968c80 (diff)
parent9c8449a3dba4715c96a2eaeed173194b38c60828 (diff)
Merge pull request #23653 from marcelofg55/as_stop
Fix AudioStreamPlayback::stop not being called on AudioStreamPlayer::stop
-rw-r--r--scene/audio/audio_player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/audio/audio_player.cpp b/scene/audio/audio_player.cpp
index 64af7efb16..1d9d048fe1 100644
--- a/scene/audio/audio_player.cpp
+++ b/scene/audio/audio_player.cpp
@@ -219,6 +219,7 @@ void AudioStreamPlayer::seek(float p_seconds) {
void AudioStreamPlayer::stop() {
if (stream_playback.is_valid()) {
+ stream_playback->stop();
active = false;
set_process_internal(false);
}