only use low complexity OPUS processing for 128 samples frame size, see https://sourceforge.net/p/llcon/discussion/533517/thread/bdb3fe2195
This commit is contained in:
parent
61ea6ca0d0
commit
5a05bf6a2f
3 changed files with 8 additions and 11 deletions
|
@ -92,8 +92,8 @@ CClient::CClient ( const quint16 iPortNumber,
|
|||
opus_custom_encoder_ctl ( OpusEncoderMono,
|
||||
OPUS_SET_APPLICATION ( OPUS_APPLICATION_RESTRICTED_LOWDELAY ) );
|
||||
|
||||
#ifdef USE_LOW_COMPLEXITY_CELT_ENC
|
||||
// set encoder low complexity
|
||||
#if ( SYSTEM_FRAME_SIZE_SAMPLES == 128 )
|
||||
// set encoder low complexity for legacy 128 samples frame size
|
||||
opus_custom_encoder_ctl ( OpusEncoderMono,
|
||||
OPUS_SET_COMPLEXITY ( 1 ) );
|
||||
#endif
|
||||
|
@ -115,8 +115,8 @@ CClient::CClient ( const quint16 iPortNumber,
|
|||
opus_custom_encoder_ctl ( OpusEncoderStereo,
|
||||
OPUS_SET_APPLICATION ( OPUS_APPLICATION_RESTRICTED_LOWDELAY ) );
|
||||
|
||||
#ifdef USE_LOW_COMPLEXITY_CELT_ENC
|
||||
// set encoder low complexity
|
||||
#if ( SYSTEM_FRAME_SIZE_SAMPLES == 128 )
|
||||
// set encoder low complexity for legacy 128 samples frame size
|
||||
opus_custom_encoder_ctl ( OpusEncoderStereo,
|
||||
OPUS_SET_COMPLEXITY ( 1 ) );
|
||||
#endif
|
||||
|
|
|
@ -129,9 +129,6 @@ LED bar: lbr
|
|||
#define FRAME_SIZE_FACTOR_DEFAULT 2 // 256 (for frame size 128), 128 (for frame size 64)
|
||||
#define FRAME_SIZE_FACTOR_SAFE 4 // 512 (for frame size 128), 256 (for frame size 64)
|
||||
|
||||
// low complexity CELT encoder (if defined)
|
||||
#define USE_LOW_COMPLEXITY_CELT_ENC
|
||||
|
||||
// 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
|
||||
|
|
|
@ -266,8 +266,8 @@ CServer::CServer ( const int iNewMaxNumChan,
|
|||
opus_custom_encoder_ctl ( OpusEncoderMono[i],
|
||||
OPUS_SET_APPLICATION ( OPUS_APPLICATION_RESTRICTED_LOWDELAY ) );
|
||||
|
||||
#ifdef USE_LOW_COMPLEXITY_CELT_ENC
|
||||
// set encoder low complexity
|
||||
#if ( SYSTEM_FRAME_SIZE_SAMPLES == 128 )
|
||||
// set encoder low complexity for legacy 128 samples frame size
|
||||
opus_custom_encoder_ctl ( OpusEncoderMono[i],
|
||||
OPUS_SET_COMPLEXITY ( 1 ) );
|
||||
#endif
|
||||
|
@ -289,8 +289,8 @@ CServer::CServer ( const int iNewMaxNumChan,
|
|||
opus_custom_encoder_ctl ( OpusEncoderStereo[i],
|
||||
OPUS_SET_APPLICATION ( OPUS_APPLICATION_RESTRICTED_LOWDELAY ) );
|
||||
|
||||
#ifdef USE_LOW_COMPLEXITY_CELT_ENC
|
||||
// set encoder low complexity
|
||||
#if ( SYSTEM_FRAME_SIZE_SAMPLES == 128 )
|
||||
// set encoder low complexity for legacy 128 samples frame size
|
||||
opus_custom_encoder_ctl ( OpusEncoderStereo[i],
|
||||
OPUS_SET_COMPLEXITY ( 1 ) );
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue