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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/test/simpleKenny.c

Issue 1319683002: AudioDecoder: Replace Init() with Reset() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@buffer
Patch Set: review fixes 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 246 }
247 247
248 framecnt = 0; 248 framecnt = 0;
249 endfile = 0; 249 endfile = 0;
250 250
251 /* Initialize encoder and decoder */ 251 /* Initialize encoder and decoder */
252 if (WebRtcIsac_EncoderInit(ISAC_main_inst, codingMode) < 0) { 252 if (WebRtcIsac_EncoderInit(ISAC_main_inst, codingMode) < 0) {
253 printf("cannot initialize encoder\n"); 253 printf("cannot initialize encoder\n");
254 return -1; 254 return -1;
255 } 255 }
256 if (WebRtcIsac_DecoderInit(ISAC_main_inst) < 0) { 256 WebRtcIsac_DecoderInit(ISAC_main_inst);
257 printf("cannot initialize decoder\n");
258 return -1;
259 }
260 257
261 // { 258 // {
262 // int32_t b1, b2; 259 // int32_t b1, b2;
263 // FILE* fileID = fopen("GetBNTest.txt", "w"); 260 // FILE* fileID = fopen("GetBNTest.txt", "w");
264 // b2 = 32100; 261 // b2 = 32100;
265 // while (b2 <= 52000) { 262 // while (b2 <= 52000) {
266 // WebRtcIsac_Control(ISAC_main_inst, b2, frameSize); 263 // WebRtcIsac_Control(ISAC_main_inst, b2, frameSize);
267 // WebRtcIsac_GetUplinkBw(ISAC_main_inst, &b1); 264 // WebRtcIsac_GetUplinkBw(ISAC_main_inst, &b1);
268 // fprintf(fileID, "%5d %5d\n", b2, b1); 265 // fprintf(fileID, "%5d %5d\n", b2, b1);
269 // b2 += 10; 266 // b2 += 10;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 str->lastArrivalTime = 0; 567 str->lastArrivalTime = 0;
571 568
572 str->maxPayloadLB = 0; 569 str->maxPayloadLB = 0;
573 str->maxPayloadUB = 0; 570 str->maxPayloadUB = 0;
574 str->lbBytes = 0; 571 str->lbBytes = 0;
575 str->ubBytes = 0; 572 str->ubBytes = 0;
576 573
577 return 0; 574 return 0;
578 }; 575 };
579 #endif 576 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698