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 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 uint32_t TestPack::timestamp_diff() { | 98 uint32_t TestPack::timestamp_diff() { |
99 return timestamp_diff_; | 99 return timestamp_diff_; |
100 } | 100 } |
101 | 101 |
102 void TestPack::reset_payload_size() { | 102 void TestPack::reset_payload_size() { |
103 payload_size_ = 0; | 103 payload_size_ = 0; |
104 } | 104 } |
105 | 105 |
106 TestAllCodecs::TestAllCodecs(int test_mode) | 106 TestAllCodecs::TestAllCodecs(int test_mode) |
107 : acm_a_(AudioCodingModule::Create(0)), | 107 : acm_a_(AudioCodingModule::Create()), |
108 acm_b_(AudioCodingModule::Create(1)), | 108 acm_b_(AudioCodingModule::Create()), |
109 channel_a_to_b_(NULL), | 109 channel_a_to_b_(NULL), |
110 test_count_(0), | 110 test_count_(0), |
111 packet_size_samples_(0), | 111 packet_size_samples_(0), |
112 packet_size_bytes_(0) { | 112 packet_size_bytes_(0) { |
113 // test_mode = 0 for silent test (auto test) | 113 // test_mode = 0 for silent test (auto test) |
114 test_mode_ = test_mode; | 114 test_mode_ = test_mode; |
115 } | 115 } |
116 | 116 |
117 TestAllCodecs::~TestAllCodecs() { | 117 TestAllCodecs::~TestAllCodecs() { |
118 if (channel_a_to_b_ != NULL) { | 118 if (channel_a_to_b_ != NULL) { |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 } | 481 } |
482 | 482 |
483 void TestAllCodecs::DisplaySendReceiveCodec() { | 483 void TestAllCodecs::DisplaySendReceiveCodec() { |
484 CodecInst my_codec_param; | 484 CodecInst my_codec_param; |
485 printf("%s -> ", acm_a_->SendCodec()->plname); | 485 printf("%s -> ", acm_a_->SendCodec()->plname); |
486 acm_b_->ReceiveCodec(&my_codec_param); | 486 acm_b_->ReceiveCodec(&my_codec_param); |
487 printf("%s\n", my_codec_param.plname); | 487 printf("%s\n", my_codec_param.plname); |
488 } | 488 } |
489 | 489 |
490 } // namespace webrtc | 490 } // namespace webrtc |
OLD | NEW |