mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-18 05:30:06 -05:00
pitch effect is applied to active sound players array
This commit is contained in:
parent
c9029396c6
commit
263f614ef8
1 changed files with 4 additions and 1 deletions
|
@ -181,7 +181,10 @@ AudioPlayer.prototype.stopAllSounds = function () {
|
|||
|
||||
// stop drum notes
|
||||
this.audioEngine.drumPlayer.stopAll();
|
||||
};
|
||||
|
||||
AudioPlayer.prototype.setPitchEffect = function (value) {
|
||||
this.pitchEffect.set(value, this.activeSoundPlayers);
|
||||
};
|
||||
|
||||
AudioPlayer.prototype.setEffect = function (effect, value) {
|
||||
|
@ -233,7 +236,7 @@ AudioPlayer.prototype.changeEffect = function (effect, value) {
|
|||
|
||||
AudioPlayer.prototype.clearEffects = function () {
|
||||
this.panEffect.set(0);
|
||||
this.pitchEffect.set(0, this.soundPlayers);
|
||||
this.pitchEffect.set(0, this.activeSoundPlayers);
|
||||
this.effectsNode.gain.value = 1;
|
||||
|
||||
this.audioEngine.echoEffect.set(0);
|
||||
|
|
Loading…
Reference in a new issue