|
|
@ -648,20 +648,6 @@ void S_StartSound( const vec3_t pos, int ent, int chan, sound_t handle, float fv |
|
|
|
|
|
|
|
|
|
|
|
// Init client entity mouth movement vars
|
|
|
|
// Init client entity mouth movement vars
|
|
|
|
SND_InitMouth( ent, chan ); |
|
|
|
SND_InitMouth( ent, chan ); |
|
|
|
|
|
|
|
|
|
|
|
for( ch_idx = NUM_AMBIENTS, check = channels + NUM_AMBIENTS; ch_idx < MAX_DYNAMIC_CHANNELS; ch_idx++, check++) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if( check == target_chan ) continue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( check->sfx == sfx && !check->pMixer.sample ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// skip up to 0.1 seconds of audio
|
|
|
|
|
|
|
|
int skip = COM_RandomLong( 0, (long)( 0.1f * check->sfx->cache->rate )); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
S_SetSampleStart( check, sfx->cache, skip ); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|