This commit is contained in:
Spartan322
2024-11-02 03:14:40 -04:00
169 changed files with 3388 additions and 1094 deletions

View File

@@ -114,6 +114,7 @@ void AudioStreamPlayerInternal::notification(int p_what) {
stream_playbacks.clear();
} break;
case Node::NOTIFICATION_SUSPENDED:
case Node::NOTIFICATION_PAUSED: {
if (!node->can_process()) {
// Node can't process so we start fading out to silence
@@ -121,6 +122,13 @@ void AudioStreamPlayerInternal::notification(int p_what) {
}
} break;
case Node::NOTIFICATION_UNSUSPENDED: {
if (node->get_tree()->is_paused()) {
break;
}
[[fallthrough]];
}
case Node::NOTIFICATION_UNPAUSED: {
set_stream_paused(false);
} break;