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 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 CodecSettings codec; | 57 CodecSettings codec; |
58 AcmSettings acm; | 58 AcmSettings acm; |
59 bool packet_loss; | 59 bool packet_loss; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace | 62 } // namespace |
63 | 63 |
64 class DelayTest { | 64 class DelayTest { |
65 public: | 65 public: |
66 DelayTest() | 66 DelayTest() |
67 : acm_a_(AudioCodingModule::Create(0)), | 67 : acm_a_(AudioCodingModule::Create()), |
68 acm_b_(AudioCodingModule::Create(1)), | 68 acm_b_(AudioCodingModule::Create()), |
69 channel_a2b_(new Channel), | 69 channel_a2b_(new Channel), |
70 test_cntr_(0), | 70 test_cntr_(0), |
71 encoding_sample_rate_hz_(8000) {} | 71 encoding_sample_rate_hz_(8000) {} |
72 | 72 |
73 ~DelayTest() { | 73 ~DelayTest() { |
74 if (channel_a2b_ != NULL) { | 74 if (channel_a2b_ != NULL) { |
75 delete channel_a2b_; | 75 delete channel_a2b_; |
76 channel_a2b_ = NULL; | 76 channel_a2b_ = NULL; |
77 } | 77 } |
78 in_file_a_.Close(); | 78 in_file_a_.Close(); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 test_setting.codec.num_channels = FLAG_num_channels; | 268 test_setting.codec.num_channels = FLAG_num_channels; |
269 test_setting.acm.dtx = FLAG_dtx; | 269 test_setting.acm.dtx = FLAG_dtx; |
270 test_setting.acm.fec = FLAG_fec; | 270 test_setting.acm.fec = FLAG_fec; |
271 test_setting.packet_loss = FLAG_packet_loss; | 271 test_setting.packet_loss = FLAG_packet_loss; |
272 | 272 |
273 webrtc::DelayTest delay_test; | 273 webrtc::DelayTest delay_test; |
274 delay_test.Initialize(); | 274 delay_test.Initialize(); |
275 delay_test.Perform(&test_setting, 1, 240, "delay_test"); | 275 delay_test.Perform(&test_setting, 1, 240, "delay_test"); |
276 return 0; | 276 return 0; |
277 } | 277 } |
OLD | NEW |