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

Side by Side Diff: webrtc/modules/audio_processing/intelligibility/test/intelligibility_proc.cc

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 "Variance clear rate; history is forgotten every N gain recalculations."); 61 "Variance clear rate; history is forgotten every N gain recalculations.");
62 DEFINE_double(gain_limit, 1000.0, "Maximum gain change in one block."); 62 DEFINE_double(gain_limit, 1000.0, "Maximum gain change in one block.");
63 63
64 DEFINE_string(clear_file, "speech.wav", "Input file with clear speech."); 64 DEFINE_string(clear_file, "speech.wav", "Input file with clear speech.");
65 DEFINE_string(noise_file, "noise.wav", "Input file with noise data."); 65 DEFINE_string(noise_file, "noise.wav", "Input file with noise data.");
66 DEFINE_string(out_file, 66 DEFINE_string(out_file,
67 "proc_enhanced.wav", 67 "proc_enhanced.wav",
68 "Enhanced output. Use '-' to " 68 "Enhanced output. Use '-' to "
69 "play through aplay immediately."); 69 "play through aplay immediately.");
70 70
71 const int kNumChannels = 1; 71 const size_t kNumChannels = 1;
72 72
73 // void function for gtest 73 // void function for gtest
74 void void_main(int argc, char* argv[]) { 74 void void_main(int argc, char* argv[]) {
75 google::SetUsageMessage( 75 google::SetUsageMessage(
76 "\n\nVariance algorithm types are:\n" 76 "\n\nVariance algorithm types are:\n"
77 " 0 - infinite/normal,\n" 77 " 0 - infinite/normal,\n"
78 " 1 - exponentially decaying,\n" 78 " 1 - exponentially decaying,\n"
79 " 2 - rolling window.\n" 79 " 2 - rolling window.\n"
80 "\nInput files must be little-endian 16-bit signed raw PCM.\n"); 80 "\nInput files must be little-endian 16-bit signed raw PCM.\n");
81 google::ParseCommandLineFlags(&argc, &argv, true); 81 google::ParseCommandLineFlags(&argc, &argv, true);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 } 144 }
145 145
146 } // namespace 146 } // namespace
147 } // namespace webrtc 147 } // namespace webrtc
148 148
149 int main(int argc, char* argv[]) { 149 int main(int argc, char* argv[]) {
150 webrtc::void_main(argc, argv); 150 webrtc::void_main(argc, argv);
151 return 0; 151 return 0;
152 } 152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698