You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Smooth all spatial audio motion with velocity-driven tweening
GMCP delivers movement as whole-metre position snaps, so sources and the
listener teleported around the head; near a source one strafe leapt ~115
degrees in a single audio frame. Interpolate everything instead:
- VectorTweener: keyed, single-rAF-loop glides; duration from the server's
velocity (clamped 80-600ms), mid-flight retargeting, nlerp mode for
orientation axes, injectable clock/scheduler for tests.
- Client.Spatial handler tweens listener/entity positions, nlerps forward
vectors over 150ms; scene snapshots and enter/leave still snap.
- Media sound positions tween per sound; LiveKit panners snap on attach and
ramp on sync; FOA encode/level gains and ambisonic distance gain ramp via
setTargetAtTime (30ms tau) instead of stepping.
- spatialStore.patchEntity supports per-frame partial updates.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CyEqCPCmxQYQHamSH1m2A
0 commit comments