refactor audio engine: simplified gain channels, improve fading between audio, rename functions

This commit is contained in:
jorsi
2020-06-03 17:44:27 -04:00
parent fd4fbe6bd4
commit 3b43a2754a
8 changed files with 124 additions and 133 deletions
+1 -1
View File
@@ -805,7 +805,7 @@
if ($SM.get('config.soundOn')) {
$('.volume').text(_('sound on.'));
$SM.set('config.soundOn', false);
AudioEngine.mute();
AudioEngine.setVolume(0.0);
} else {
$('.volume').text(_('sound off.'));
$SM.set('config.soundOn', true);