mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Implemented setMute method
This commit is contained in:
parent
ede81f2a03
commit
162a063f03
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue