try enforcing 44100 samples/s for audio to avoid problems with odd defautl sampling rates
This commit is contained in:
parent
c5323f8d54
commit
57efdff43e
@ -14,7 +14,11 @@ function AudioEngine(maxBufferLength, audioReporter) {
|
||||
this.onStartCallbacks = [];
|
||||
|
||||
this.started = false;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user