Implemented setMute method

This commit is contained in:
Pavle Goloskokovic 2018-01-11 17:49:40 +01:00
parent ede81f2a03
commit 162a063f03

View file

@ -69,6 +69,11 @@ var HTML5AudioSound = new Class({
destroy: function () {
BaseSound.prototype.destroy.call(this);
// TODO release all HTML5 Audio tag related stuff
},
setMute: function () {
if (this.audio) {
this.audio.muted = this.currentConfig.mute || this.manager.mute;
}
}
});
module.exports = HTML5AudioSound;