From 8ac22bdae4fcbf857c90b0934fe3d35ead7357d4 Mon Sep 17 00:00:00 2001 From: Ellen Poe Date: Thu, 18 Feb 2021 20:39:08 -0800 Subject: [PATCH] Don't fade out after pausing unless stream is running (cherry picked from commit eb5566f5c5f6ed6171a9d271ffff766e7a9f8a04) --- scene/audio/audio_stream_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/audio/audio_stream_player.cpp b/scene/audio/audio_stream_player.cpp index cd1efa78eac..0be77d23c34 100644 --- a/scene/audio/audio_stream_player.cpp +++ b/scene/audio/audio_stream_player.cpp @@ -107,7 +107,7 @@ void AudioStreamPlayer::_mix_audio() { } if (stream_paused) { - if (stream_paused_fade) { + if (stream_paused_fade && stream_playback->is_playing()) { _mix_internal(true); stream_paused_fade = false; }