summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2016-06-03 15:20:28 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-06-29 15:21:31 -0400
commitec2d022e0b86de3eb3c000e9a937a38ae0980526 (patch)
tree9752d401bd741ffa679a5ceb311c5b908c8b83fd
parentecc91710b8c64088d1f0f26d4ab039d181434765 (diff)
downloadopus-ec2d022e0b86de3eb3c000e9a937a38ae0980526.tar.gz
Now that we're preventing huge gains, we no longer need to pretend there's
no dither
-rw-r--r--silk/NSQ.c4
-rw-r--r--silk/NSQ_del_dec.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/silk/NSQ.c b/silk/NSQ.c
index 18cd9465..721715e2 100644
--- a/silk/NSQ.c
+++ b/silk/NSQ.c
@@ -214,10 +214,6 @@ void silk_noise_shape_quantizer(
/* Set up short term AR state */
psLPC_Q14 = &NSQ->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 ];
- /* 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 );
diff --git a/silk/NSQ_del_dec.c b/silk/NSQ_del_dec.c
index be465572..b92bc8f8 100644
--- a/silk/NSQ_del_dec.c
+++ b/silk/NSQ_del_dec.c
@@ -354,9 +354,6 @@ static OPUS_INLINE void silk_noise_shape_quantizer_del_dec(
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 );