diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-04-30 15:23:26 +0400 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-04-30 15:23:26 +0400 |
commit | d00ed5a4d01ba89bac0a813eff39768785eeb6ca (patch) | |
tree | c9836bf94080910415b0fe2127d97503bb55f799 /libspeex/nb_celp.c | |
parent | 89701a7d9a962dae2adbea3b3eb4f616d7e67cf8 (diff) |
cleaning up new enhancer
git-svn-id: http://svn.xiph.org/trunk/speex@11321 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex/nb_celp.c')
-rw-r--r-- | libspeex/nb_celp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c index 4bfebf1..5873205 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -1706,8 +1706,8 @@ int nb_decode(void *state, SpeexBits *bits, void *vout) #ifdef NEW_ENHANCER if (st->lpc_enh_enabled && SUBMODE(comb_gain)>0 && !st->count_lost) { - multicomb(st->exc-40, out, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, pitch, pitch_gain, SUBMODE(comb_gain), stack); - multicomb(st->exc+40, out+80, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, pitch, pitch_gain, SUBMODE(comb_gain), stack); + multicomb(st->exc-40, out, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, best_pitch, pitch_gain, SUBMODE(comb_gain), stack); + multicomb(st->exc+40, out+80, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, best_pitch, pitch_gain, SUBMODE(comb_gain), stack); } else { for (i=0;i<st->frameSize;i++) out[i]=PSHR32(st->exc[i-40],SIG_SHIFT); |