Skip to content

Commit

Permalink
Merge pull request #1 from vespakoen/master
Browse files Browse the repository at this point in the history
Support more runtimes (by getting rid of the fat arrow function)
  • Loading branch information
namniak authored Nov 24, 2016
2 parents 1cf3fcc + fd9c199 commit cb40bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = function(audioContext, stream, opts) {
envFreqRange = envFreqRange.filter(function(val) {
return val;
}).sort();
var averageEnvFreq = envFreqRange.length ? envFreqRange.reduce((p, c) => Math.min(p, c), 1) : (options.minNoiseLevel || 0.1);
var averageEnvFreq = envFreqRange.length ? envFreqRange.reduce(function (p, c) { return Math.min(p, c) }, 1) : (options.minNoiseLevel || 0.1);

baseLevel = averageEnvFreq * options.avgNoiseMultiplier;
if (options.minNoiseLevel && baseLevel < options.minNoiseLevel) baseLevel = options.minNoiseLevel;
Expand Down

0 comments on commit cb40bc8

Please sign in to comment.