Skip to content

Commit e25974d

Browse files
authored
Merge pull request goldfire#1210 from ilyabesk/patch-2
Fix for the issue with volume reset after _unlockAudio()
2 parents 47c885c + f1430ed commit e25974d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/howler.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@
24582458
// Create and expose the master GainNode when using Web Audio (useful for plugins or advanced usage).
24592459
if (Howler.usingWebAudio) {
24602460
Howler.masterGain = (typeof Howler.ctx.createGain === 'undefined') ? Howler.ctx.createGainNode() : Howler.ctx.createGain();
2461-
Howler.masterGain.gain.setValueAtTime(Howler._muted ? 0 : 1, Howler.ctx.currentTime);
2461+
Howler.masterGain.gain.setValueAtTime(Howler._muted ? 0 : Howler._volume, Howler.ctx.currentTime);
24622462
Howler.masterGain.connect(Howler.ctx.destination);
24632463
}
24642464

0 commit comments

Comments
 (0)