This commit is contained in:
icslucas
2025-07-27 18:18:33 +02:00
committed by GitHub
parent e7cf9dcf2e
commit c195272fbf
+8 -2
View File
@@ -155,12 +155,18 @@ class SoundManager {
}
public muteSoundEffects(): void {
this.soundEffectsVolume.gain.setValueAtTime(0, this.audioContext.currentTime);
this.soundEffectsVolume.gain.setValueAtTime(
0,
this.audioContext.currentTime,
);
this.userSettings.setMuteSoundEffects(true);
}
public unmuteSoundEffects(): void {
this.soundEffectsVolume.gain.setValueAtTime(1, this.audioContext.currentTime);
this.soundEffectsVolume.gain.setValueAtTime(
1,
this.audioContext.currentTime,
);
this.userSettings.setMuteSoundEffects(false);
}