Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: webrtc/modules/audio_coding/main/test/APITest.cc

Issue 1308283003: Remove no-op and unused methods from AudioCodingModule (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/interface/audio_coding_module.h ('k') | webrtc/modules/audio_coding/main/test/TestVADDTX.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698