From f59ac2360adb2966d3a04fedef8d761480593dc9 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Mon, 12 Dec 2022 13:49:46 +0400 Subject: [PATCH] engine: voice: made voice_scale to influence incoming voice audio volume --- engine/client/voice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/voice.c b/engine/client/voice.c index b6cd1540..fb2bfdbe 100644 --- a/engine/client/voice.c +++ b/engine/client/voice.c @@ -461,7 +461,7 @@ Feed the decoded data to engine sound subsystem static void Voice_StartChannel( uint samples, byte *data, int entnum ) { SND_ForceInitMouth( entnum ); - S_RawEntSamples( entnum, samples, voice.samplerate, voice.width, VOICE_PCM_CHANNELS, data, 255 ); + S_RawEntSamples( entnum, samples, voice.samplerate, voice.width, VOICE_PCM_CHANNELS, data, bound( 0, 255 * voice_scale.value, 255 )); } /*