Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust tts volume #2291

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions Content.Client/SS220/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ public sealed partial class TTSSystem : EntitySystem
/// </summary>
private const float WhisperFade = 4f;

/// <summary>
/// The volume at which the TTS sound will not be heard.
/// </summary>
private const float MinimalVolume = -10f;

private float _volume = 0.0f;
private float _radioVolume = 0.0f;
private int _fileIdx = 0;
Expand Down Expand Up @@ -284,7 +279,7 @@ private float AdjustVolume(bool isRadio, bool isAnounce, bool isWhisper)
{
var volume = isRadio ? _radioVolume : isAnounce ? VolumeAnnounce : _volume;

volume = MinimalVolume + SharedAudioSystem.GainToVolume(volume);
volume = SharedAudioSystem.GainToVolume(volume);

if (isWhisper)
{
Expand Down
Loading