mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
add AudioEngine.createEffectChain
This commit is contained in:
parent
c8f3510713
commit
018d4fc01e
1 changed files with 6 additions and 3 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue