Browse Source

engine: server: request client to use Opus Custom codec

pull/2/head
Alibek Omarov 2 years ago
parent
commit
24763f9b07
  1. 4
      engine/server/sv_init.c

4
engine/server/sv_init.c

@ -17,6 +17,8 @@ GNU General Public License for more details.
#include "server.h" #include "server.h"
#include "net_encode.h" #include "net_encode.h"
#include "library.h" #include "library.h"
#include "voice.h"
#if XASH_LOW_MEMORY != 2 #if XASH_LOW_MEMORY != 2
int SV_UPDATE_BACKUP = SINGLEPLAYER_BACKUP; int SV_UPDATE_BACKUP = SINGLEPLAYER_BACKUP;
#endif #endif
@ -394,7 +396,7 @@ SV_WriteVoiceCodec
void SV_WriteVoiceCodec( sizebuf_t *msg ) void SV_WriteVoiceCodec( sizebuf_t *msg )
{ {
MSG_BeginServerCmd( msg, svc_voiceinit ); MSG_BeginServerCmd( msg, svc_voiceinit );
MSG_WriteString( msg, "opus" ); MSG_WriteString( msg, VOICE_DEFAULT_CODEC );
MSG_WriteByte( msg, (int)sv_voicequality.value ); MSG_WriteByte( msg, (int)sv_voicequality.value );
} }

Loading…
Cancel
Save