Turn on DTX only when the noise is sufficiently quiet
authorFelicia Lim <flim@google.com>
Mon, 16 May 2016 13:52:44 +0000 (15:52 +0200)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 17 Jul 2016 19:05:54 +0000 (15:05 -0400)
commit33f18a20dc1eb401e51369e97674f09f79943631
tree567a641d65b6b6a53e5f976d5182512856fac095
parent36481346729962928b58672a86bef140b703787a
Turn on DTX only when the noise is sufficiently quiet

Computes a pseudo SNR as the ratio between the running peak signal
energy to instantaneous noise energy. DTX is turned on only if this is
higher than a pre-determined threshold.

Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
src/opus_encoder.c