Support OPUS_SET_COMPLEXITY() on decoder side

Controls whether deep PLC is enabled
This commit is contained in:
Jean-Marc Valin 2023-10-18 17:40:54 -04:00
parent 000af0340a
commit 8d43b185b2
No known key found for this signature in database
GPG key ID: 531A52533318F00A
8 changed files with 84 additions and 19 deletions

View file

@ -281,6 +281,7 @@ opus_int silk_Decode( /* O Returns error co
has_side = !psDec->prev_decode_only_middle
|| (decControl->nChannelsInternal == 2 && lostFlag == FLAG_DECODE_LBRR && channel_state[1].LBRR_flags[ channel_state[1].nFramesDecoded ] == 1 );
}
channel_state[ 0 ].sPLC.enable_deep_plc = decControl->enable_deep_plc;
/* Call decoder for one frame */
for( n = 0; n < decControl->nChannelsInternal; n++ ) {
if( n == 0 || has_side ) {