mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 08:44:31 +00:00
engine: client: voice: do not reinitialize voice with same parameters
This commit is contained in:
parent
04107d384e
commit
7d2bf93c72
@ -600,8 +600,10 @@ qboolean Voice_Init( const char *pszCodecName, int quality )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// reinitialize only if codec parameters are different
|
// reinitialize only if codec parameters are different
|
||||||
if( Q_strcmp( voice.codec, pszCodecName ) && voice.quality != quality )
|
if( !Q_strcmp( voice.codec, pszCodecName ) && voice.quality == quality )
|
||||||
Voice_Shutdown();
|
return true;
|
||||||
|
|
||||||
|
Voice_Shutdown();
|
||||||
|
|
||||||
voice.autogain.block_size = 128;
|
voice.autogain.block_size = 128;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user