Remove alpha and add desynchronized

This commit is contained in:
Vanilagy
2025-06-03 18:02:51 +02:00
parent a7386fc6c3
commit 3940586612
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const volumeButton = document.querySelector('#volume-button') as HTMLButtonEleme
const fullscreenButton = document.querySelector('#fullscreen-button') as HTMLButtonElement;
const errorElement = document.querySelector('#error-element') as HTMLDivElement;
const context = canvas.getContext('2d')!;
const context = canvas.getContext('2d', { alpha: false, desynchronized: true })!;
let audioContext: AudioContext | null = null;
let gainNode: GainNode | null = null;