From ef319f149c203b2731d1d959b61b49544bd84d83 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Wed, 9 Aug 2017 13:35:45 -0400 Subject: [PATCH] Remove unneeded comments --- src/lib/audio/effects/echo-effect.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib/audio/effects/echo-effect.js b/src/lib/audio/effects/echo-effect.js index 3a8326bc0..a691da11f 100644 --- a/src/lib/audio/effects/echo-effect.js +++ b/src/lib/audio/effects/echo-effect.js @@ -5,18 +5,12 @@ class EchoEffect { this.input = this.audioContext.createGain(); this.output = this.audioContext.createGain(); - if (delayTime === 0) { - this.input.connect(this.output); - return; - } - this.effectInput = this.audioContext.createGain(); this.effectInput.gain.value = 0.75; - // this.effectInput.gain.setValueAtTime(0.5, this.audioContext.currentTime + Math.max(0, 0.75 * duration)) this.delay = this.audioContext.createDelay(1); this.delay.delayTime.value = delayTime; - this.decay = this.audioContext.createGain(); // @todo chain + this.decay = this.audioContext.createGain(); this.decay.gain.value = 0.3; this.compressor = this.audioContext.createDynamicsCompressor(); -- GitLab