Skip to content

Commit

Permalink
turn on filters with gain adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Nov 2, 2024
1 parent 84701bc commit da20e51
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3854,10 +3854,6 @@ function formatDuration(seconds){
updatePrefs('config.json', config)
showFilterEffect();
filterIconDisplay();
if (config.filters.active){
document.getElementById('navbarSettings').click();
document.getElementById('decreaseFont').scrollIntoView();
}
}


Expand Down Expand Up @@ -4803,6 +4799,7 @@ function playRegion(){
config.audio.gain = element.value;
worker.postMessage({action:'update-state', audio: config.audio})
const position = clamp(wavesurfer.getCurrentTime() / windowLength, 0, 1);
config.filters.active || toggleFilters();
fileLoaded &&
postBufferUpdate({ begin: bufferBegin, position: position, region: getRegion(), goToRegion: false })
break }
Expand Down

0 comments on commit da20e51

Please sign in to comment.