From 46e07a8b01bf721a47200a18cc9e2ae317145436 Mon Sep 17 00:00:00 2001 From: sigmund68k Date: Wed, 14 Jan 2026 16:11:08 -0500 Subject: [PATCH] Audio: Check if on tree before calling can_process() --- scene/audio/audio_stream_player_internal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/audio/audio_stream_player_internal.cpp b/scene/audio/audio_stream_player_internal.cpp index f738530f09..43265007ee 100644 --- a/scene/audio/audio_stream_player_internal.cpp +++ b/scene/audio/audio_stream_player_internal.cpp @@ -114,7 +114,8 @@ void AudioStreamPlayerInternal::notification(int p_what) { case Node::NOTIFICATION_SUSPENDED: case Node::NOTIFICATION_PAUSED: { - if (!node->can_process()) { + bool can_process = node->is_inside_tree() && node->can_process(); + if (!can_process) { // Node can't process so we start fading out to silence set_stream_paused(true); }