OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "gflags/gflags.h" | 15 #include "gflags/gflags.h" |
16 #include "webrtc/test/gtest.h" | |
17 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
18 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" | 17 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" |
19 #include "webrtc/modules/audio_coding/test/Channel.h" | 18 #include "webrtc/modules/audio_coding/test/Channel.h" |
20 #include "webrtc/modules/audio_coding/test/PCMFile.h" | 19 #include "webrtc/modules/audio_coding/test/PCMFile.h" |
21 #include "webrtc/modules/include/module_common_types.h" | 20 #include "webrtc/modules/include/module_common_types.h" |
22 #include "webrtc/system_wrappers/include/clock.h" | 21 #include "webrtc/system_wrappers/include/clock.h" |
| 22 #include "webrtc/test/gtest.h" |
23 #include "webrtc/test/testsupport/fileutils.h" | 23 #include "webrtc/test/testsupport/fileutils.h" |
24 | 24 |
25 // Codec. | 25 // Codec. |
26 DEFINE_string(codec, "opus", "Codec Name"); | 26 DEFINE_string(codec, "opus", "Codec Name"); |
27 DEFINE_int32(codec_sample_rate_hz, 48000, "Sampling rate in Hertz."); | 27 DEFINE_int32(codec_sample_rate_hz, 48000, "Sampling rate in Hertz."); |
28 DEFINE_int32(codec_channels, 1, "Number of channels of the codec."); | 28 DEFINE_int32(codec_channels, 1, "Number of channels of the codec."); |
29 | 29 |
30 // PCM input/output. | 30 // PCM input/output. |
31 DEFINE_string(input, "", "Input PCM file at 16 kHz."); | 31 DEFINE_string(input, "", "Input PCM file at 16 kHz."); |
32 DEFINE_bool(input_stereo, false, "Input is stereo."); | 32 DEFINE_bool(input_stereo, false, "Input is stereo."); |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 if (delay_log != NULL) { | 301 if (delay_log != NULL) { |
302 fprintf(delay_log, "%3d %3d\n", optimal_delay_ms, current_delay_ms); | 302 fprintf(delay_log, "%3d %3d\n", optimal_delay_ms, current_delay_ms); |
303 } | 303 } |
304 } | 304 } |
305 } | 305 } |
306 std::cout << std::endl; | 306 std::cout << std::endl; |
307 test.TearDown(); | 307 test.TearDown(); |
308 if (delay_log != NULL) | 308 if (delay_log != NULL) |
309 fclose(delay_log); | 309 fclose(delay_log); |
310 } | 310 } |
OLD | NEW |