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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 { | 1122 { |
1123 WriteLockScoped wl(_apiTestRWLock); | 1123 WriteLockScoped wl(_apiTestRWLock); |
1124 thereIsEncoder = &_thereIsEncoderB; | 1124 thereIsEncoder = &_thereIsEncoderB; |
1125 } | 1125 } |
1126 vad = &_sendVADB; | 1126 vad = &_sendVADB; |
1127 dtx = &_sendDTXB; | 1127 dtx = &_sendDTXB; |
1128 mode = &_sendVADModeB; | 1128 mode = &_sendVADModeB; |
1129 myChannel = _channel_B2A; | 1129 myChannel = _channel_B2A; |
1130 } | 1130 } |
1131 | 1131 |
1132 myACM->ResetEncoder(); | |
1133 Wait(100); | 1132 Wait(100); |
1134 | 1133 |
1135 // Register the next codec | 1134 // Register the next codec |
1136 do { | 1135 do { |
1137 *codecCntr = | 1136 *codecCntr = |
1138 (*codecCntr < AudioCodingModule::NumberOfCodecs() - 1) ? | 1137 (*codecCntr < AudioCodingModule::NumberOfCodecs() - 1) ? |
1139 (*codecCntr + 1) : 0; | 1138 (*codecCntr + 1) : 0; |
1140 | 1139 |
1141 if (*codecCntr == 0) { | 1140 if (*codecCntr == 0) { |
1142 //printf("Initialize Sender Side A \n"); | 1141 //printf("Initialize Sender Side A \n"); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 CHECK_ERROR_MT(myACM->RegisterSendCodec(myCodec)); | 1178 CHECK_ERROR_MT(myACM->RegisterSendCodec(myCodec)); |
1180 myChannel->ResetStats(); | 1179 myChannel->ResetStats(); |
1181 { | 1180 { |
1182 WriteLockScoped wl(_apiTestRWLock); | 1181 WriteLockScoped wl(_apiTestRWLock); |
1183 *thereIsEncoder = true; | 1182 *thereIsEncoder = true; |
1184 } | 1183 } |
1185 Wait(500); | 1184 Wait(500); |
1186 } | 1185 } |
1187 | 1186 |
1188 } // namespace webrtc | 1187 } // namespace webrtc |
OLD | NEW |