mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: client: move timescale pitch apply to channel mixing
This commit is contained in:
parent
532cd779a7
commit
b8dc7494eb
@ -533,8 +533,6 @@ void S_StartSound( const vec3_t pos, int ent, int chan, sound_t handle, float fv
|
|||||||
// spatialize
|
// spatialize
|
||||||
memset( target_chan, 0, sizeof( *target_chan ));
|
memset( target_chan, 0, sizeof( *target_chan ));
|
||||||
|
|
||||||
pitch *= (sys_timescale.value + 1) / 2;
|
|
||||||
|
|
||||||
VectorCopy( pos, target_chan->origin );
|
VectorCopy( pos, target_chan->origin );
|
||||||
target_chan->staticsound = ( ent == 0 ) ? true : false;
|
target_chan->staticsound = ( ent == 0 ) ? true : false;
|
||||||
target_chan->use_loop = (flags & SND_STOP_LOOPING) ? false : true;
|
target_chan->use_loop = (flags & SND_STOP_LOOPING) ? false : true;
|
||||||
|
@ -619,6 +619,8 @@ void MIX_MixChannelsToPaintbuffer( int endtime, int rate, int outputRate )
|
|||||||
ch->pitch = VOX_ModifyPitch( ch, ch->basePitch * 0.01f );
|
ch->pitch = VOX_ModifyPitch( ch, ch->basePitch * 0.01f );
|
||||||
else ch->pitch = ch->basePitch * 0.01f;
|
else ch->pitch = ch->basePitch * 0.01f;
|
||||||
|
|
||||||
|
ch->pitch *= ( sys_timescale.value + 1 ) / 2;
|
||||||
|
|
||||||
if( CL_GetEntityByIndex( ch->entnum ) && ( ch->entchannel == CHAN_VOICE ))
|
if( CL_GetEntityByIndex( ch->entnum ) && ( ch->entchannel == CHAN_VOICE ))
|
||||||
{
|
{
|
||||||
if( pSource->width == 1 )
|
if( pSource->width == 1 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user