Merge pull request #26638 from KoBeWi/fix_audio_stream_player
Pause AudioStreamPlayer on SceneTree pause
This commit is contained in:
commit
12fefc1a6c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue