mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
fix opus
This commit is contained in:
@@ -97,6 +97,11 @@ bool VoiceEncoder_Opus::Init( int quality, int &rawFrameSize, int &encodedFrameS
|
||||
|
||||
m_Mode = opus_custom_mode_create( g_OpusOpts[m_iVersion].iSampleRate, g_OpusOpts[m_iVersion].iRawFrameSize, &iError );
|
||||
|
||||
if ( iError != 0 ) {
|
||||
Msg( "Opus init failed with error %d", iError );
|
||||
return false;
|
||||
}
|
||||
|
||||
m_EncoderState = opus_custom_encoder_create( m_Mode, CHANNELS, NULL);
|
||||
m_DecoderState = opus_custom_decoder_create( m_Mode, CHANNELS, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user