resolveVolume previously clamped any value >=1 to full blast. If a future settings change ever leaks a 0–100 scale through (instead of 0–1), the user gets jump-scared at max volume. Treat any v>1 as a scale-drift bug and play at DEFAULT_VOLUME instead. Also reject NaN / Infinity explicitly rather than relying on the <=0 branch catching them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3.6 KiB
3.6 KiB