aboutsummaryrefslogtreecommitdiff
path: root/scene/audio/stream_player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/audio/stream_player.cpp')
-rw-r--r--scene/audio/stream_player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/audio/stream_player.cpp b/scene/audio/stream_player.cpp
index 0ee9d7661..bffb2de4d 100644
--- a/scene/audio/stream_player.cpp
+++ b/scene/audio/stream_player.cpp
@@ -165,6 +165,8 @@ void StreamPlayer::stop() {
//_THREAD_SAFE_METHOD_
AudioServer::get_singleton()->stream_set_active(stream_rid,false);
playback->stop();
+ resampler.flush();
+
//set_idle_process(false);
}