diff options
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2008-06-04 03:28:30 +0400 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2008-06-04 03:28:30 +0400 |
commit | e0f19debeb252eea6a8188f0261223033ef498b8 (patch) | |
tree | 1ab99c9c2ac09fee4ebd222f47c96510c63abc12 | |
parent | b2c35c162be84b81e5bc98696acaab56713c6727 (diff) |
Less aggressive noise adaptation
-rw-r--r-- | libspeex/preprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libspeex/preprocess.c b/libspeex/preprocess.c index d1b9497..89f65a8 100644 --- a/libspeex/preprocess.c +++ b/libspeex/preprocess.c @@ -704,7 +704,7 @@ static void update_noise_prob(SpeexPreprocessState *st) } for (i=0;i<N;i++) { - if (MULT16_32_Q15(QCONST16(.4f,15),st->S[i]) > ADD32(st->Smin[i],EXTEND32(20))) + if (MULT16_32_Q15(QCONST16(.4f,15),st->S[i]) > st->Smin[i]) st->update_prob[i] = 1; else st->update_prob[i] = 0; |