mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Implemented mute property setter for HTML5AudioSoundManager class
This commit is contained in:
parent
8c5610416a
commit
fca5dcd1ab
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ Object.defineProperty(HTML5AudioSoundManager.prototype, 'mute', {
|
|||
return this._mute;
|
||||
},
|
||||
set: function (value) {
|
||||
this._mute = value;
|
||||
this.forEachActiveSound(function (sound) {
|
||||
sound.setMute();
|
||||
});
|
||||
}
|
||||
});
|
||||
module.exports = HTML5AudioSoundManager;
|
||||
|
|
Loading…
Reference in a new issue