mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 05:53:43 -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');
|
||||
}
|
||||
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue