From 592b68c16cc7c298b9cc8a925b5786915d21ebea Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Sat, 30 May 2026 14:38:28 -0700 Subject: [PATCH] Player revamp: harden crossfade race conditions + global decl (audit fixes) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Self-audit of the revamp surface found real bugs, now fixed: - DOUBLE-ADVANCE race: crossfade starts ~6s before track end, but when the track actually 'ended' fired, onAudioEnded ALSO advanced — two skips. onAudioEnded now bails when npXfadeActive (crossfade owns the advance). - STRAY CROSSFADE on manual skip/stop: skipping or stopping mid-fade left the interval running, firing npFinishCrossfade on top of the manual change, and left the second