2
0
Fork 0

Pause AudioStreamPlayer on SceneTree pause

3.1
Tomasz Chabora 2019-03-05 15:02:21 +07:00
parent 45e7306b5a
commit 4f840168d2
1 changed files with 3 additions and 1 deletions

@ -91,8 +91,10 @@ void AudioStreamPlayer::_mix_internal(bool p_fadeout) {
void AudioStreamPlayer::_mix_audio() {
if (!stream_playback.is_valid() || !active)
if (!stream_playback.is_valid() || !active ||
(stream_paused && !stream_fade)) {
return;
}
if (stream_fade) {
_mix_internal(true);