Skip to content

Commit 3730993

Browse files
committed
Fixed issue where mute/volume were not properly set on new instances (only affected HTML audio)
1 parent f25c8cb commit 3730993

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/soundjs/AbstractPlugin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ this.createjs = this.createjs || {};
227227
this._soundInstances[src].push(si);
228228
}
229229

230+
// Plugins that don't have a setVolume should implement a setMasterVolune/setMasterMute
231+
// So we have to check that here.
232+
si.setMasterVolume && si.setMasterVolume(createjs.Sound.volume);
233+
si.setMasterMute && si.setMasterMute(createjs.Sound.muted);
234+
230235
return si;
231236
};
232237

0 commit comments

Comments
 (0)