diff --git a/htdocs/lib/AudioEngine.js b/htdocs/lib/AudioEngine.js index 9434c83..eb7fa4f 100644 --- a/htdocs/lib/AudioEngine.js +++ b/htdocs/lib/AudioEngine.js @@ -14,7 +14,11 @@ function AudioEngine(maxBufferLength, audioReporter) { this.onStartCallbacks = []; this.started = false; - this.audioContext = new ctx(); + try { + this.audioContext = new ctx({sampleRate: 44100}); + } catch (error) { + this.audioContext = new ctx(); + } var me = this; this.audioContext.onstatechange = function() { if (me.audioContext.state !== 'running') return;