mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 14:19:09 +00:00
Prettier
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user