Skip to content

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Morb0 committed Feb 16, 2024
1 parent 551721c commit dffc629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Client/Corvax/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);

Expand Down

0 comments on commit dffc629

Please sign in to comment.