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

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: Formatting 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..f5ea7340b81f08b5fbabc91a39bc0a71470fdb58 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;
} // namespace
@@ -208,11 +209,13 @@ 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