mirror of
http://nostr-git-proxy.forgejo.svc.cluster.local/git/45387ca441053e230b2126802005eb03767ab59d84555e8bac86b6e7def14e27/myadhd
synced 2026-09-23 20:23:10 +00:00
fix(sprint4): fix audio.js gain node bug & remove redundant clear interval in app.js
This commit is contained in:
parent
b9f6e21841
commit
9fec6ffade
2 changed files with 1 additions and 2 deletions
|
|
@ -421,7 +421,6 @@
|
||||||
if (timer.left <= 0) {
|
if (timer.left <= 0) {
|
||||||
timerComplete();
|
timerComplete();
|
||||||
return;
|
return;
|
||||||
if (window.groundingIv) clearInterval(window.groundingIv);
|
|
||||||
}
|
}
|
||||||
timerPaint();
|
timerPaint();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ window.playGroundingPing = function() {
|
||||||
gain.gain.linearRampToValueAtTime(0.3, audioCtx.currentTime + 0.1);
|
gain.gain.linearRampToValueAtTime(0.3, audioCtx.currentTime + 0.1);
|
||||||
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 1.5);
|
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 1.5);
|
||||||
osc.connect(gain);
|
osc.connect(gain);
|
||||||
gain.connect(masterGain);
|
gain.connect(gainNode);
|
||||||
osc.start();
|
osc.start();
|
||||||
osc.stop(audioCtx.currentTime + 1.5);
|
osc.stop(audioCtx.currentTime + 1.5);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue