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

Unified Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc

Issue 1766383002: Convert IntelligibilityEnhancer to multi-threaded mode (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
Index: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc
diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc
index dd5b681798be0f55620fe5a1486f1542f0aef1a4..703f115c9e6759b4d966772c0b9638fc9d1010da 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc
@@ -201,6 +201,7 @@ const int kSamples = 1000;
const int kSampleRate = 4000;
const int kNumChannels = 1;
const int kFragmentSize = kSampleRate / 100;
+const size_t kNumNoiseBins = 129;
peah-webrtc 2016/03/08 07:02:39 This is a bit of a strange number of bins, I would
aluebs-webrtc 2016/03/08 10:53:00 This is only a unittest and shouldn't affect at al
} // namespace
@@ -208,11 +209,15 @@ class IntelligibilityEnhancerTest : public ::testing::Test {
protected:
IntelligibilityEnhancerTest()
: clear_data_(kSamples), noise_data_(kSamples), orig_data_(kSamples) {
- enh_.reset(new IntelligibilityEnhancer(kSampleRate, kNumChannels));
+ enh_.reset(new IntelligibilityEnhancer(kSampleRate,
+ kNumChannels,
+ kNumNoiseBins));
}
bool CheckUpdate() {
- enh_.reset(new IntelligibilityEnhancer(kSampleRate, kNumChannels));
+ enh_.reset(new IntelligibilityEnhancer(kSampleRate,
+ kNumChannels,
+ kNumNoiseBins));
float* clear_cursor = clear_data_.data();
float* noise_cursor = noise_data_.data();
for (int i = 0; i < kSamples; i += kFragmentSize) {

Powered by Google App Engine
This is Rietveld 408576698