From 79b2d6dcf9cf903ed638012b5ff2b7b640834b5d Mon Sep 17 00:00:00 2001 From: James Baicoianu Date: Mon, 4 Aug 2014 22:51:15 -0700 Subject: [PATCH] Attempt #2 for audiostage compatibility --- scripts/external/audiostage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/external/audiostage.js b/scripts/external/audiostage.js index 62c2729..25b453f 100644 --- a/scripts/external/audiostage.js +++ b/scripts/external/audiostage.js @@ -21,7 +21,7 @@ var AudioStage = function() { } AudioStage.prototype.getNewMasterFader = function() { - var fader = this.context.createGainNode(), + var fader = (this.context.createGain ? this.context.createGain() : this.context.createGainNode()), compressor = this.context.createDynamicsCompressor(); fader.connect(compressor);