From f134ac747eacc705611e6dbead01958762bb3a82 Mon Sep 17 00:00:00 2001 From: SpicyDarkFox Date: Mon, 2 Sep 2024 18:10:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B3=D1=80=D0=B0=D0=BD=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=A2=D0=A2=D0=A1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/Corvax/TTS/TTSSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Client/Corvax/TTS/TTSSystem.cs b/Content.Client/Corvax/TTS/TTSSystem.cs index bff5000674..69cec272b7 100644 --- a/Content.Client/Corvax/TTS/TTSSystem.cs +++ b/Content.Client/Corvax/TTS/TTSSystem.cs @@ -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);