From 018d4fc01e231f07852720679a6c9330d8438d01 Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Wed, 20 Jun 2018 15:27:57 -0400 Subject: [PATCH] add AudioEngine.createEffectChain --- src/AudioEngine.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/AudioEngine.js b/src/AudioEngine.js index f39746f..80122ab 100644 --- a/src/AudioEngine.js +++ b/src/AudioEngine.js @@ -248,11 +248,14 @@ class AudioEngine { log.warn('the createPlayer method is no longer available, please use createBank'); } - - createBank () { + createEffectChain () { const effects = new EffectChain(this, this.effects); effects.connect(this); - return new SoundBank(this, effects); + return effects; + } + + createBank () { + return new SoundBank(this, this.createEffectChain()); } }