X-Git-Url: http://105106.c2e0p.group/sound.git/blobdiff_plain/45b342640b26802ce9102a9e794a091f956c54a2..45ddec7e27af3ded3ebb81d2d2200e6331deb8f1:/sound.js diff --git a/sound.js b/sound.js index efddc12..c4f9c0e 100644 --- a/sound.js +++ b/sound.js @@ -146,7 +146,7 @@ Sound.prototype = { playInternal: function() { this.gainNode = Sound.audioContext.createGainNode(); - this.gainNode.gain.value = this._volume; + this.gainNode.gain.value = this._muted ? 0 : this._volume; this.gainNode.connect(Sound.audioContext.destination); this.node = Sound.audioContext.createBufferSource();