| OLD | NEW |
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 DEFINE_string(clear_file, "speech.wav", "Input file with clear speech."); | 63 DEFINE_string(clear_file, "speech.wav", "Input file with clear speech."); |
| 64 DEFINE_string(noise_file, "noise.wav", "Input file with noise data."); | 64 DEFINE_string(noise_file, "noise.wav", "Input file with noise data."); |
| 65 DEFINE_string(out_file, | 65 DEFINE_string(out_file, |
| 66 "proc_enhanced.wav", | 66 "proc_enhanced.wav", |
| 67 "Enhanced output. Use '-' to " | 67 "Enhanced output. Use '-' to " |
| 68 "play through aplay immediately."); | 68 "play through aplay immediately."); |
| 69 | 69 |
| 70 // Constant IntelligibilityEnhancer constructor parameters. | 70 // Constant IntelligibilityEnhancer constructor parameters. |
| 71 const size_t kErbResolution = 2; | 71 const size_t kErbResolution = 2; |
| 72 const int kNumChannels = 1; | 72 const size_t kNumChannels = 1; |
| 73 | 73 |
| 74 // void function for gtest | 74 // void function for gtest |
| 75 void void_main(int argc, char* argv[]) { | 75 void void_main(int argc, char* argv[]) { |
| 76 google::SetUsageMessage( | 76 google::SetUsageMessage( |
| 77 "\n\nVariance algorithm types are:\n" | 77 "\n\nVariance algorithm types are:\n" |
| 78 " 0 - infinite/normal,\n" | 78 " 0 - infinite/normal,\n" |
| 79 " 1 - exponentially decaying,\n" | 79 " 1 - exponentially decaying,\n" |
| 80 " 2 - rolling window.\n" | 80 " 2 - rolling window.\n" |
| 81 "\nInput files must be little-endian 16-bit signed raw PCM.\n"); | 81 "\nInput files must be little-endian 16-bit signed raw PCM.\n"); |
| 82 google::ParseCommandLineFlags(&argc, &argv, true); | 82 google::ParseCommandLineFlags(&argc, &argv, true); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace | 145 } // namespace |
| 146 } // namespace webrtc | 146 } // namespace webrtc |
| 147 | 147 |
| 148 int main(int argc, char* argv[]) { | 148 int main(int argc, char* argv[]) { |
| 149 webrtc::void_main(argc, argv); | 149 webrtc::void_main(argc, argv); |
| 150 return 0; | 150 return 0; |
| 151 } | 151 } |
| OLD | NEW |