Skip to content

Commit

Permalink
still broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Nov 7, 2023
1 parent 3217ef8 commit 3d2a363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 3d2a363

Please sign in to comment.