mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge commit godotengine/godot@c6c464cf9a
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user