diff --git a/src/global.h b/src/global.h index 2810d17b..4a4e83c9 100755 --- a/src/global.h +++ b/src/global.h @@ -115,9 +115,6 @@ LED bar: lbr // low complexity CELT encoder (if defined) #define USE_LOW_COMPLEXITY_CELT_ENC -// percentage of expected packet loss in the OPUS encoder -#define OPUS_EXPECTED_PACKET_LOSS_PERC 50 - // define the minimum allowed number of coded bytes for CELT (the encoder // gets in trouble if the value is too low) #define CELT_MINIMUM_NUM_BYTES 10 diff --git a/src/server.cpp b/src/server.cpp index f95234a4..d5586bff 100755 --- a/src/server.cpp +++ b/src/server.cpp @@ -251,10 +251,6 @@ CServer::CServer ( const int iNewNumChan, opus_custom_encoder_ctl ( OpusEncoderMono[i], OPUS_SET_VBR ( 0 ) ); - // we expect packet loss, tell the encoder about it - opus_custom_encoder_ctl ( OpusEncoderMono[i], - OPUS_SET_PACKET_LOSS_PERC ( OPUS_EXPECTED_PACKET_LOSS_PERC ) ); - // we want as low delay as possible opus_custom_encoder_ctl ( OpusEncoderMono[i], OPUS_SET_APPLICATION ( OPUS_APPLICATION_RESTRICTED_LOWDELAY ) ); @@ -290,10 +286,6 @@ CServer::CServer ( const int iNewNumChan, opus_custom_encoder_ctl ( OpusEncoderStereo[i], OPUS_SET_VBR ( 0 ) ); - // we expect packet loss, tell the encoder about it - opus_custom_encoder_ctl ( OpusEncoderStereo[i], - OPUS_SET_PACKET_LOSS_PERC ( OPUS_EXPECTED_PACKET_LOSS_PERC ) ); - // we want as low delay as possible opus_custom_encoder_ctl ( OpusEncoderStereo[i], OPUS_SET_APPLICATION ( OPUS_APPLICATION_RESTRICTED_LOWDELAY ) );