engine: voice: made voice_scale to influence incoming voice audio volume

This commit is contained in:
SNMetamorph 2022-12-12 13:49:46 +04:00
parent ff21fb42e6
commit 0d7cd58c38
1 changed files with 1 additions and 1 deletions

View File

@ -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 ));
}
/*