mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Remove alpha and add desynchronized
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user