Skip to content
Snippets Groups Projects
Unverified Commit cf58efea authored by Jesús de Vicente Peña's avatar Jesús de Vicente Peña Committed by Felicia Lim
Browse files

Revert "Attenuate SILK PLC gain only for unvoiced speech"


This reverts commit 4f5557c3.

Signed-off-by: default avatarFelicia Lim <flim@google.com>
parent 6d29f51a
No related branches found
No related tags found
No related merge requests found
...@@ -328,10 +328,8 @@ static OPUS_INLINE void silk_PLC_conceal( ...@@ -328,10 +328,8 @@ static OPUS_INLINE void silk_PLC_conceal(
for( j = 0; j < LTP_ORDER; j++ ) { for( j = 0; j < LTP_ORDER; j++ ) {
B_Q14[ j ] = silk_RSHIFT( silk_SMULBB( harm_Gain_Q15, B_Q14[ j ] ), 15 ); B_Q14[ j ] = silk_RSHIFT( silk_SMULBB( harm_Gain_Q15, B_Q14[ j ] ), 15 );
} }
if ( psDec->indices.signalType != TYPE_NO_VOICE_ACTIVITY ) { /* Gradually reduce excitation gain */
/* Gradually reduce excitation gain */ rand_scale_Q14 = silk_RSHIFT( silk_SMULBB( rand_scale_Q14, rand_Gain_Q15 ), 15 );
rand_scale_Q14 = silk_RSHIFT( silk_SMULBB( rand_scale_Q14, rand_Gain_Q15 ), 15 );
}
/* Slowly increase pitch lag */ /* Slowly increase pitch lag */
psPLC->pitchL_Q8 = silk_SMLAWB( psPLC->pitchL_Q8, psPLC->pitchL_Q8, PITCH_DRIFT_FAC_Q16 ); psPLC->pitchL_Q8 = silk_SMLAWB( psPLC->pitchL_Q8, psPLC->pitchL_Q8, PITCH_DRIFT_FAC_Q16 );
......
...@@ -97,7 +97,6 @@ opus_int silk_decode_frame( ...@@ -97,7 +97,6 @@ opus_int silk_decode_frame(
psDec->first_frame_after_reset = 0; psDec->first_frame_after_reset = 0;
} else { } else {
/* Handle packet loss by extrapolation */ /* Handle packet loss by extrapolation */
psDec->indices.signalType = psDec->prevSignalType;
silk_PLC( psDec, psDecCtrl, pOut, 1, arch ); silk_PLC( psDec, psDecCtrl, pOut, 1, arch );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment