From dffc62976675bfbcf7e9469e34cd33b69506a809 Mon Sep 17 00:00:00 2001 From: Morb0 <14136326+Morb0@users.noreply.github.com> Date: Fri, 16 Feb 2024 13:15:44 +0300 Subject: [PATCH] Remove unused --- Content.Client/Corvax/TTS/TTSSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Corvax/TTS/TTSSystem.cs b/Content.Client/Corvax/TTS/TTSSystem.cs index f5069d6d0e6..da0a58e15c2 100644 --- a/Content.Client/Corvax/TTS/TTSSystem.cs +++ b/Content.Client/Corvax/TTS/TTSSystem.cs @@ -74,7 +74,7 @@ private void OnPlayTTS(PlayTTSEvent ev) audioResource.Load(IoCManager.Instance!, Prefix / filePath); var audioParams = AudioParams.Default - .WithVolume(AdjustVolume(ev.IsWhisper, 1f)) + .WithVolume(AdjustVolume(ev.IsWhisper)) .WithMaxDistance(AdjustDistance(ev.IsWhisper)); if (ev.SourceUid != null) @@ -90,7 +90,7 @@ private void OnPlayTTS(PlayTTSEvent ev) _contentRoot.RemoveFile(filePath); } - private float AdjustVolume(bool isWhisper, float distance) + private float AdjustVolume(bool isWhisper) { var volume = MinimalVolume + SharedAudioSystem.GainToVolume(_volume);