fix(sprint4): fix audio.js gain node bug & remove redundant clear interval in app.js

This commit is contained in:
djg 2026-09-23 05:25:47 +00:00
parent b9f6e21841
commit 9fec6ffade
2 changed files with 1 additions and 2 deletions

View file

@ -421,7 +421,6 @@
if (timer.left <= 0) {
timerComplete();
return;
if (window.groundingIv) clearInterval(window.groundingIv);
}
timerPaint();
}, 1000);

View file

@ -121,7 +121,7 @@ window.playGroundingPing = function() {
gain.gain.linearRampToValueAtTime(0.3, audioCtx.currentTime + 0.1);
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 1.5);
osc.connect(gain);
gain.connect(masterGain);
gain.connect(gainNode);
osc.start();
osc.stop(audioCtx.currentTime + 1.5);
};