mute se when paused

This commit is contained in:
esterTion
2022-01-10 14:31:32 +08:00
parent dd07b20eaa
commit 1cedabe516
+2
View File
@@ -949,11 +949,13 @@ window.play = function () {
}, 500)
})
seContext.resume()
gain.gain.value = se_volume.value / 100
}
window.pause = function () {
bgm.pause()
if (enableBga) bga.pause()
playing = false
gain.gain.value = 0
}
window.stop = function () {
pause()