Skip to content

Commit 162a063

Browse files
Implemented setMute method
1 parent ede81f2 commit 162a063

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ var HTML5AudioSound = new Class({
6969
destroy: function () {
7070
BaseSound.prototype.destroy.call(this);
7171
// TODO release all HTML5 Audio tag related stuff
72+
},
73+
setMute: function () {
74+
if (this.audio) {
75+
this.audio.muted = this.currentConfig.mute || this.manager.mute;
76+
}
7277
}
7378
});
7479
module.exports = HTML5AudioSound;

0 commit comments

Comments
 (0)