From c7d7564161c330c8f3541c08c27bd921c54dc73d Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 11 Oct 2022 10:11:49 +0300 Subject: [PATCH] #46: 44.1 vs 48 and Firefox vs Chromium --- src/dist/wavesurfer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dist/wavesurfer.js b/src/dist/wavesurfer.js index c7c1bab..a094e34 100755 --- a/src/dist/wavesurfer.js +++ b/src/dist/wavesurfer.js @@ -6219,7 +6219,7 @@ var WebAudio = function (_util$Observer) { PKAudioEditor.engine.ID3 (arraybuffer); if (!this.offlineAc) { - this.offlineAc = this.getOfflineAudioContext(44100); // this.ac ? this.ac.sampleRate : 44100); + this.offlineAc = this.getOfflineAudioContext(this?.ac?.sampleRate || 44100); } var promise = this.offlineAc.decodeAudioData(arraybuffer, function (data) {