add AudioEngine.createEffectChain

This commit is contained in:
Michael "Z" Goddard 2018-06-20 15:27:57 -04:00 committed by Corey Frang
parent c8f3510713
commit 018d4fc01e

View file

@ -248,11 +248,14 @@ class AudioEngine {
log.warn('the createPlayer method is no longer available, please use createBank'); log.warn('the createPlayer method is no longer available, please use createBank');
} }
createEffectChain () {
createBank () {
const effects = new EffectChain(this, this.effects); const effects = new EffectChain(this, this.effects);
effects.connect(this); effects.connect(this);
return new SoundBank(this, effects); return effects;
}
createBank () {
return new SoundBank(this, this.createEffectChain());
} }
} }