Skip to content

Commit 91f9629

Browse files
Implemented setVolume method
1 parent 162a063 commit 91f9629

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
@@ -74,6 +74,11 @@ var HTML5AudioSound = new Class({
7474
if (this.audio) {
7575
this.audio.muted = this.currentConfig.mute || this.manager.mute;
7676
}
77+
},
78+
setVolume: function () {
79+
if (this.audio) {
80+
this.audio.volume = this.currentConfig.volume * this.manager.volume;
81+
}
7782
}
7883
});
7984
module.exports = HTML5AudioSound;

0 commit comments

Comments
 (0)