Minor quality tweak to 3.95 kbps mode.
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 9 Nov 2007 10:13:34 +0000 (10:13 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 9 Nov 2007 10:13:34 +0000 (10:13 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@14116 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/nb_celp.c

index c7504fb..467e650 100644 (file)
@@ -665,6 +665,8 @@ int nb_encode(void *state, void *vin, SpeexBits *bits)
    if (SUBMODE(forced_pitch_gain))
    {
       int quant;
+      /* This just damps the pitch a bit, because it tends to be too aggressive when forced */
+      ol_pitch_coef = MULT16_16_Q15(QCONST16(.9,15), ol_pitch_coef);
 #ifdef FIXED_POINT
       quant = PSHR16(MULT16_16_16(15, ol_pitch_coef),GAIN_SHIFT);
 #else