From 3d2a3634807e6a37393d9570b35a8c751713f4c3 Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Tue, 7 Nov 2023 09:39:50 +0000 Subject: [PATCH] still broken --- js/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui.js b/js/ui.js index 27527f3a..39883506 100644 --- a/js/ui.js +++ b/js/ui.js @@ -201,7 +201,7 @@ async function loadAudioFile({ filePath = '', preserveResults = false }) { function updateSpec({ buffer, play = false, position = 0, resetSpec = false }) { //updateElementCache(); - wavesurfer.getDecodedData(buffer); + wavesurfer.loadDecodedBuffer(buffer); //waveCanvasElement.width('100%'); //specCanvasElement.width('100%'); //$('.spec-labels').width('55px'); @@ -273,7 +273,7 @@ const initWavesurfer = ({ initRegion(); initSpectrogram(); createTimeline(); - if (audio) wavesurfer.getDecodedData(audio); + if (audio) wavesurfer.loadDecodedBuffer(audio); colourmap.value = config.colormap; // Set click event that removes all regions