Permalink
Browse files

Make reverb work with empty input.

  • Loading branch information...
1 parent 567c5b6 commit ec38a00fc5ccacb61d73a2c18838b0726ea54488 @oampo committed Feb 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/dsp/Reverb.js
View
@@ -98,7 +98,7 @@ Reverb.prototype.generate = function() {
var numberOfCombs = this.combTuning.length;
var numberOfFilters = this.allPassTuning.length;
- var value = this.inputs[0].samples[0];
+ var value = this.inputs[0].samples[0] || 0;
var dryValue = value;
value *= this.fixedGain;

0 comments on commit ec38a00

Please sign in to comment.