Pause AudioStreamPlayer on SceneTree pause
This commit is contained in:
parent
45e7306b5a
commit
4f840168d2
@ -91,8 +91,10 @@ void AudioStreamPlayer::_mix_internal(bool p_fadeout) {
|
|||||||
|
|
||||||
void AudioStreamPlayer::_mix_audio() {
|
void AudioStreamPlayer::_mix_audio() {
|
||||||
|
|
||||||
if (!stream_playback.is_valid() || !active)
|
if (!stream_playback.is_valid() || !active ||
|
||||||
|
(stream_paused && !stream_fade)) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (stream_fade) {
|
if (stream_fade) {
|
||||||
_mix_internal(true);
|
_mix_internal(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user