OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 // Sets up a simple VoiceEngine loopback call with the default audio devices | 11 // Sets up a simple VoiceEngine loopback call with the default audio devices |
12 // and runs forever. Some parameters can be configured through command-line | 12 // and runs forever. Some parameters can be configured through command-line |
13 // flags. | 13 // flags. |
14 | 14 |
15 #include "gflags/gflags.h" | 15 #include "gflags/gflags.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 #include "webrtc/base/scoped_ptr.h" | 18 #include "webrtc/base/scoped_ptr.h" |
19 #include "webrtc/test/channel_transport/include/channel_transport.h" | 19 #include "webrtc/test/channel_transport/channel_transport.h" |
20 #include "webrtc/voice_engine/include/voe_audio_processing.h" | 20 #include "webrtc/voice_engine/include/voe_audio_processing.h" |
21 #include "webrtc/voice_engine/include/voe_base.h" | 21 #include "webrtc/voice_engine/include/voe_base.h" |
22 #include "webrtc/voice_engine/include/voe_codec.h" | 22 #include "webrtc/voice_engine/include/voe_codec.h" |
23 #include "webrtc/voice_engine/include/voe_hardware.h" | 23 #include "webrtc/voice_engine/include/voe_hardware.h" |
24 #include "webrtc/voice_engine/include/voe_network.h" | 24 #include "webrtc/voice_engine/include/voe_network.h" |
25 | 25 |
26 DEFINE_string(render, "render", "render device name"); | 26 DEFINE_string(render, "render", "render device name"); |
27 DEFINE_string(codec, "ISAC", "codec name"); | 27 DEFINE_string(codec, "ISAC", "codec name"); |
28 DEFINE_int32(rate, 16000, "codec sample rate in Hz"); | 28 DEFINE_int32(rate, 16000, "codec sample rate in Hz"); |
29 | 29 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 } // namespace test | 102 } // namespace test |
103 } // namespace webrtc | 103 } // namespace webrtc |
104 | 104 |
105 int main(int argc, char** argv) { | 105 int main(int argc, char** argv) { |
106 google::ParseCommandLineFlags(&argc, &argv, true); | 106 google::ParseCommandLineFlags(&argc, &argv, true); |
107 webrtc::test::RunHarness(); | 107 webrtc::test::RunHarness(); |
108 } | 108 } |
OLD | NEW |