Implemented mute property setter for HTML5AudioSoundManager class

This commit is contained in:
Pavle Goloskokovic 2018-01-08 19:32:20 +01:00
parent 8c5610416a
commit fca5dcd1ab

View file

@ -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;