We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a2aab2 + 35d4824 commit bd70c32Copy full SHA for bd70c32
js/rpg_core/WebAudio.js
@@ -421,7 +421,7 @@ WebAudio.prototype.fadeOut = function(duration) {
421
if (this._gainNode) {
422
var gain = this._gainNode.gain;
423
var currentTime = WebAudio._context.currentTime;
424
- gain.setValueAtTime(gain.value, currentTime);
+ gain.setValueAtTime(this._volume, currentTime);
425
gain.linearRampToValueAtTime(0, currentTime + duration);
426
}
427
this._autoPlay = false;
0 commit comments