ref: 6e124863320ae29a9fb342922fcc937ef2066493
parent: d8781a0ffb03d4f1e56518df7e843154234554b4
author: Jean-Marc Valin <[email protected]>
date: Fri Jun 3 11:20:28 EDT 2016
Now that we're preventing huge gains, we no longer need to pretend there's no dither
--- a/silk/NSQ.c
+++ b/silk/NSQ.c
@@ -225,10 +225,6 @@
silk_short_prediction_create_arch_coef(a_Q12_arch, a_Q12, predictLPCOrder);
#endif
- /* We're getting desperate to hit the target -- pretend there's
- no dithering to make hitting the target more likely. */
- if (Lambda_Q10 > 3072) offset_Q10 = 0;
-
for( i = 0; i < length; i++ ) {
/* Generate dither */
NSQ->rand_seed = silk_RAND( NSQ->rand_seed );
--- a/silk/NSQ_del_dec.c
+++ b/silk/NSQ_del_dec.c
@@ -362,9 +362,6 @@
NSQ_sample_struct *psSS;
SAVE_STACK;
- /* We're getting desperate to hit the target -- pretend there's
- no dithering to make hitting the target more likely. */
- if (Lambda_Q10 > 3072) offset_Q10 = 0;
silk_assert( nStatesDelayedDecision > 0 );
ALLOC( psSampleState, nStatesDelayedDecision, NSQ_sample_pair );