We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9ac11 commit 68fbb84Copy full SHA for 68fbb84
workspaces/simon-game/src/app/util/playSound.ts
@@ -34,7 +34,10 @@ export const playSound = (
34
gainNode.gain.setValueAtTime(volumePct, audioContext.currentTime);
35
36
// Creates the smooth fades-in / fade-out sound effect (Avoids the popping sounds)
37
- gainNode.gain.linearRampToValueAtTime(volumePct, audioContext.currentTime + 0.01);
+ gainNode.gain.linearRampToValueAtTime(
38
+ volumePct,
39
+ audioContext.currentTime + 0.01,
40
+ );
41
gainNode.gain.linearRampToValueAtTime(
42
0,
43
audioContext.currentTime + durationMs / 1000 - 0.01,
0 commit comments