Skip to content

Commit

Permalink
handle ffprobe and ffmpeg not in path errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisweb committed Sep 30, 2014
1 parent 5a6d4d0 commit 31c6456
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions library/audioDataAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 127,12 @@ analyzer.prototype.getData = function getDataFunction(trackPath, callback) {

});

ffprobeSpawn.on('error', function(error) {

callback(error);

});

};

/**
Expand Down Expand Up @@ -312,6 318,12 @@ analyzer.prototype.getPeaks = function getValuesFunction(trackPath, peaksAmountR

});

ffmpegSpawn.on('error', function(error) {

callback(error);

});

} else {

callback(error);
Expand Down

0 comments on commit 31c6456

Please sign in to comment.