From 9242a0a510972e9fcf95323bc3b0b56026cf18b6 Mon Sep 17 00:00:00 2001 From: Velaron Date: Sun, 23 May 2021 17:25:03 +0300 Subject: [PATCH] engine: update voice --- engine/client/cl_main.c | 1 + engine/client/cl_view.c | 3 --- engine/client/voice.h | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 172a724b..74e95673 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -22,6 +22,7 @@ GNU General Public License for more details. #include "vgui_draw.h" #include "library.h" #include "vid_common.h" +#include "voice.h" #define MAX_TOTAL_CMDS 32 #define MAX_CMD_BUFFER 8000 diff --git a/engine/client/cl_view.c b/engine/client/cl_view.c index 310d3aac..cac27075 100644 --- a/engine/client/cl_view.c +++ b/engine/client/cl_view.c @@ -286,9 +286,6 @@ qboolean V_PreRender( void ) if( !ref.initialized ) return false; - if( host.status == HOST_NOFOCUS ) - return false; - if( host.status == HOST_SLEEP ) return false; diff --git a/engine/client/voice.h b/engine/client/voice.h index 441d9c9d..b3fd162a 100644 --- a/engine/client/voice.h +++ b/engine/client/voice.h @@ -9,8 +9,6 @@ #include "soundlib/soundlib.h" #include "library.h" -#define SAMPLES_PER_SEC ( SOUND_48k / BYTES_PER_SAMPLE ) - extern convar_t voice_scale; typedef struct voice_state_s