Add "Game" editor for better runtime debugging
This commit is contained in:
@ -112,6 +112,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
|
||||
@ -119,6 +120,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;
|
||||
|
||||
Reference in New Issue
Block a user