diff options
author | Ellen Poe <ellen@ellenhp.me> | 2021-02-18 20:39:08 -0800 |
---|---|---|
committer | Ellen Poe <ellen@ellenhp.me> | 2021-02-18 20:39:08 -0800 |
commit | eb5566f5c5f6ed6171a9d271ffff766e7a9f8a04 (patch) | |
tree | cb8ef06e210fa10546ae1007906dcb11590b3bef /scene/audio | |
parent | b8a13a49686becdb4d926f730b3d7063daf81ae7 (diff) |
Don't fade out after pausing unless stream is running
Diffstat (limited to 'scene/audio')
-rw-r--r-- | scene/audio/audio_stream_player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/audio/audio_stream_player.cpp b/scene/audio/audio_stream_player.cpp index 7957571ab7..2853a8b9d9 100644 --- a/scene/audio/audio_stream_player.cpp +++ b/scene/audio/audio_stream_player.cpp @@ -105,7 +105,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; } |