踢腿音效加开关(默认开);测试分组「好物配置」改名「花钱风格」

This commit is contained in:
deploy
2026-11-05 02:17:06 +00:00
parent 20613191f5
commit a6b279343e
34 changed files with 110 additions and 107 deletions

View File

@@ -133,6 +133,7 @@
['touchstart', 'pointerdown', 'click'].forEach(t => addEventListener(t, unlock, { passive: true, once: false, capture: true }));
function kickSound(delay) {
if (!ac || ac.state !== 'running') return;
try { if (localStorage.getItem('mb_kick_snd') === '0') return; } catch (e) {} // 11-05 「我的 → 隐私与权限 → 宝宝踢腿音效」关了就不响
const t = ac.currentTime + delay / 1000;
// 闷响:正弦 150→60Hz 快速下滑,低通滤掉高频,像隔着肚皮
const o = ac.createOscillator(), g = ac.createGain(), lp = ac.createBiquadFilter();