From f797ec80f31807d9642b022b2433d4fb05a670e5 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Mon, 21 Nov 2016 18:27:50 -0500 Subject: [PATCH] cleanup --- src/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/index.js b/src/index.js index f28d4f9..dac0e45 100644 --- a/src/index.js +++ b/src/index.js @@ -202,10 +202,6 @@ AudioEngine.prototype.stopAllSounds = function () { }; AudioEngine.prototype.setEffect = function (effect, value) { - if (Number.isInteger(effect)) { - effect = this._clamp(effect, 0, this.effectNames.length); - effect = this.effectNames[effect]; - } switch (effect) { case 'PITCH': this._setPitchShift(value);