From 5dea6156ba5cd3053eaf932ca7c88fc3bb0094b5 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Thu, 4 Jun 2026 18:01:00 -0400 Subject: [PATCH] zebra-spaces: deploy smooth audio source pivot --- zebra-report/zebra-spaces.html | 85 +++++++++++++++++++++++++++------- 1 file changed, 69 insertions(+), 16 deletions(-) diff --git a/zebra-report/zebra-spaces.html b/zebra-report/zebra-spaces.html index 2205689..10af972 100644 --- a/zebra-report/zebra-spaces.html +++ b/zebra-report/zebra-spaces.html @@ -2118,6 +2118,38 @@ function detachListenerStream(uuid){ try { node.gain.disconnect(); } catch(_){} listenerAudioNodes.delete(uuid); } + +/* Smooth crossfade for the SFU worklet path. The worklet stays running + * (continues decoding samples at small CPU cost); only its GainNode + * value moves. We use Web Audio's linearRampToValueAtTime for click- + * free transitions — settings audio.volume directly causes audible + * zipper noise on Android. + * + * Called by: + * - mesh ontrack → ramp to 0 (mesh