Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Unified Diff: webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc

Issue 1727353002: Reset indexer upon initialization in AudioLoop. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fixing a unittest Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/tools/audio_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
diff --git a/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc b/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
index cdfa62b752c7940fb70381c25a1fa992e53b86a9..c33905a3888c798027e578f6f9108191efff24a5 100644
--- a/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
+++ b/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
@@ -200,17 +200,17 @@ void OpusTest::TestDtxEffect(bool dtx, int block_length_ms) {
const int max_dtx_frames = 400 / block_length_ms + 1;
// We run |kRunTimeMs| milliseconds of pure silence.
- const int kRunTimeMs = 2000;
+ const int kRunTimeMs = 4500;
// We check that, after a |kCheckTimeMs| milliseconds (given that the CNG in
// Opus needs time to adapt), the absolute values of DTX decoded signal are
// bounded by |kOutputValueBound|.
- const int kCheckTimeMs = 1500;
+ const int kCheckTimeMs = 4000;
#if defined(OPUS_FIXED_POINT)
- const uint16_t kOutputValueBound = 30;
+ const uint16_t kOutputValueBound = 20;
#else
- const uint16_t kOutputValueBound = 8;
+ const uint16_t kOutputValueBound = 2;
#endif
int time = 0;
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/tools/audio_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698