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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 void TestPackStereo::set_codec_mode(enum StereoMonoMode mode) { | 102 void TestPackStereo::set_codec_mode(enum StereoMonoMode mode) { |
103 codec_mode_ = mode; | 103 codec_mode_ = mode; |
104 } | 104 } |
105 | 105 |
106 void TestPackStereo::set_lost_packet(bool lost) { | 106 void TestPackStereo::set_lost_packet(bool lost) { |
107 lost_packet_ = lost; | 107 lost_packet_ = lost; |
108 } | 108 } |
109 | 109 |
110 TestStereo::TestStereo(int test_mode) | 110 TestStereo::TestStereo(int test_mode) |
111 : acm_a_(AudioCodingModule::Create(0)), | 111 : acm_a_(AudioCodingModule::Create()), |
112 acm_b_(AudioCodingModule::Create(1)), | 112 acm_b_(AudioCodingModule::Create()), |
113 channel_a2b_(NULL), | 113 channel_a2b_(NULL), |
114 test_cntr_(0), | 114 test_cntr_(0), |
115 pack_size_samp_(0), | 115 pack_size_samp_(0), |
116 pack_size_bytes_(0), | 116 pack_size_bytes_(0), |
117 counter_(0) | 117 counter_(0) |
118 #ifdef WEBRTC_CODEC_G722 | 118 #ifdef WEBRTC_CODEC_G722 |
119 , g722_pltype_(0) | 119 , g722_pltype_(0) |
120 #endif | 120 #endif |
121 , l16_8khz_pltype_(-1) | 121 , l16_8khz_pltype_(-1) |
122 , l16_16khz_pltype_(-1) | 122 , l16_16khz_pltype_(-1) |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 printf("%s -> ", send_codec->plname); | 845 printf("%s -> ", send_codec->plname); |
846 } | 846 } |
847 CodecInst receive_codec; | 847 CodecInst receive_codec; |
848 acm_b_->ReceiveCodec(&receive_codec); | 848 acm_b_->ReceiveCodec(&receive_codec); |
849 if (test_mode_ != 0) { | 849 if (test_mode_ != 0) { |
850 printf("%s\n", receive_codec.plname); | 850 printf("%s\n", receive_codec.plname); |
851 } | 851 } |
852 } | 852 } |
853 | 853 |
854 } // namespace webrtc | 854 } // namespace webrtc |
OLD | NEW |