From b69e8a3028acf895a514e2f6205469dfe913d295 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 10 Mar 2013 08:15:15 +0000 Subject: [PATCH] removed OPUS_EXPECTED_PACKET_LOSS_PERC because it seems not to be used in the CELT decoder (just for SILK) --- src/global.h | 3 --- src/server.cpp | 8 -------- 2 files changed, 11 deletions(-) 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 ) );