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

Unified Diff: webrtc/modules/audio_processing/intelligibility/test/intelligibility_proc.cc

Issue 1227213002: Update audio code to use size_t more correctly, webrtc/modules/audio_processing/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 5 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/test/intelligibility_proc.cc
diff --git a/webrtc/modules/audio_processing/intelligibility/test/intelligibility_proc.cc b/webrtc/modules/audio_processing/intelligibility/test/intelligibility_proc.cc
index cef41e964a6c0274ac7b41d4bd4a543650a581f3..ad40c8b3c5fe9653081fb30992839c3e1ed85d14 100644
--- a/webrtc/modules/audio_processing/intelligibility/test/intelligibility_proc.cc
+++ b/webrtc/modules/audio_processing/intelligibility/test/intelligibility_proc.cc
@@ -68,7 +68,7 @@ DEFINE_string(out_file,
"play through aplay immediately.");
// Constant IntelligibilityEnhancer constructor parameters.
-const int kErbResolution = 2;
+const size_t kErbResolution = 2;
const int kNumChannels = 1;
// void function for gtest
@@ -111,8 +111,9 @@ void void_main(int argc, char* argv[]) {
IntelligibilityEnhancer enh(
kErbResolution, FLAGS_sample_rate, kNumChannels, FLAGS_clear_type,
- static_cast<float>(FLAGS_clear_alpha), FLAGS_clear_window, FLAGS_ana_rate,
- FLAGS_var_rate, FLAGS_gain_limit);
+ static_cast<float>(FLAGS_clear_alpha),
+ static_cast<size_t>(FLAGS_clear_window), FLAGS_ana_rate, FLAGS_var_rate,
+ FLAGS_gain_limit);
// Slice the input into smaller chunks, as the APM would do, and feed them
// through the enhancer.

Powered by Google App Engine
This is Rietveld 408576698