Skip to content

Commit

Permalink
ограничение ТТСа
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyDarkFox committed Sep 2, 2024
1 parent ae70f49 commit f134ac7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Client/Corvax/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ private void OnTtsVolumeChanged(float volume)

private void OnPlayTTS(PlayTTSEvent ev)
{
#if !LPP_TTS_play //это предназначено для того, чтобы в случае отсутствия ссылки на ТТС, игра не пыталась выполнить обработку звука
return;
#endif
_sawmill.Debug($"Play TTS audio {ev.Data.Length} bytes from {ev.SourceUid} entity");

var volume = AdjustVolume(ev.IsWhisper);
Expand Down

0 comments on commit f134ac7

Please sign in to comment.