Skip to content

Commit

Permalink
call filterResults in showAnalyse
Browse files Browse the repository at this point in the history
remove duplicate logging of ffmpeg command
  • Loading branch information
Mattk70 committed Oct 18, 2024
1 parent 609c13d commit 89f1500
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ async function showAnalyse() {
showElement(['spectrogramWrapper'], false);
worker.postMessage({ action: 'update-state', filesToAnalyse: STATE.openFiles, sortOrder: STATE.sortOrder});
if (STATE.analysisDone) {
worker.postMessage({ action: 'filter',
filterResults({
species: STATE.species,
offset: STATE.offset,
active: STATE.active,
Expand Down
3 changes: 0 additions & 3 deletions js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1675,9 +1675,6 @@ const fetchAudioBuffer = async ({
UI.postMessage({event: 'generate-alert', type: 'error', message: error})
reject(new Error('fetchAudioBuffer: Error extracting audio segment:', error));
});
command.on('start', function (commandLine) {
DEBUG && console.log('FFmpeg command: ' + commandLine);
})

stream.on('readable', () => {
const chunk = stream.read();
Expand Down

0 comments on commit 89f1500

Please sign in to comment.