mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-23 02:15:55 +01:00
engine: client: remove voice_codecinfo command, as Opus Custom don't give any encoder info, possibly an Opus bug
This commit is contained in:
parent
19c2061831
commit
4be4870982
@ -39,31 +39,6 @@ static void Voice_ApplyGainAdjust( int16_t *samples, int count );
|
||||
===============================================================================
|
||||
*/
|
||||
|
||||
/*
|
||||
=========================
|
||||
Voice_CodecInfo_f
|
||||
|
||||
=========================
|
||||
*/
|
||||
static void Voice_CodecInfo_f( void )
|
||||
{
|
||||
int encoderComplexity = 0;
|
||||
opus_int32 encoderBitrate = 0;
|
||||
|
||||
if( !voice.initialized )
|
||||
{
|
||||
Con_Printf( "Voice codec is not initialized!\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
opus_custom_encoder_ctl( voice.encoder, OPUS_GET_BITRATE( &encoderBitrate ));
|
||||
opus_custom_encoder_ctl( voice.encoder, OPUS_GET_COMPLEXITY( &encoderComplexity ));
|
||||
|
||||
Con_Printf( "Encoder:\n" );
|
||||
Con_Printf( " Bitrate: %.3f kbps\n", encoderBitrate / 1000.0f );
|
||||
Con_Printf( " Complexity: %d\n", encoderComplexity );
|
||||
}
|
||||
|
||||
/*
|
||||
=========================
|
||||
Voice_InitOpusDecoder
|
||||
@ -550,7 +525,6 @@ void Voice_RegisterCvars( void )
|
||||
Cvar_RegisterVariable( &voice_avggain );
|
||||
Cvar_RegisterVariable( &voice_maxgain );
|
||||
Cvar_RegisterVariable( &voice_inputfromfile );
|
||||
Cmd_AddClientCommand( "voice_codecinfo", Voice_CodecInfo_f );
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user