diff --git a/js/ui/audio.ts b/js/ui/audio.ts index 143f931..e9371d7 100644 --- a/js/ui/audio.ts +++ b/js/ui/audio.ts @@ -19,6 +19,8 @@ import { debug } from '../util'; const SAMPLE_SIZE = 1024; const SAMPLE_RATE = 44000; +const AudioContext = window.AudioContext || (window as any).webkitAudioContext; + export default class Audio { private sound = true; private samples: number[][] = [];