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

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

Issue 1412653006: Fix Visual Studio 2015 WebRtc x86 build. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added comments for VS2015 compiler bug. Created 4 years, 10 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
11 /* kenny.c - Main function for the iSAC coder */ 11 /* kenny.c - Main function for the iSAC coder */
12 12
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16 #include <time.h> 16 #include <time.h>
17 17
18 #ifdef WIN32 18 #ifdef WIN32
19 #include "windows.h" 19 #include "windows.h"
20 #ifndef CLOCKS_PER_SEC
20 #define CLOCKS_PER_SEC 1000 21 #define CLOCKS_PER_SEC 1000
21 #endif 22 #endif
23 #endif
22 24
23 #include <ctype.h> 25 #include <ctype.h>
24 #include <math.h> 26 #include <math.h>
25 27
26 /* include API */ 28 /* include API */
27 #include "isac.h" 29 #include "isac.h"
28 #include "utility.h" 30 #include "utility.h"
29 #include "webrtc/base/format_macros.h" 31 #include "webrtc/base/format_macros.h"
30 //#include "commonDefs.h" 32 //#include "commonDefs.h"
31 33
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 if ((outp = fopen(outname, "wb")) == NULL) { 213 if ((outp = fopen(outname, "wb")) == NULL) {
212 printf(" iSAC: Cannot write file %s.\n", outname); 214 printf(" iSAC: Cannot write file %s.\n", outname);
213 exit(1); 215 exit(1);
214 } 216 }
215 217
216 #ifdef WIN32 218 #ifdef WIN32
217 _splitpath(outname, outDrive, outPath, outPrefix, outSuffix); 219 _splitpath(outname, outDrive, outPath, outPrefix, outSuffix);
218 _makepath(bitrateFileName, outDrive, outPath, "bitrate", ".txt"); 220 _makepath(bitrateFileName, outDrive, outPath, "bitrate", ".txt");
219 221
220 bitrateFile = fopen(bitrateFileName, "a"); 222 bitrateFile = fopen(bitrateFileName, "a");
221 fprintf(bitrateFile, "% %%s \n", inname); 223 fprintf(bitrateFile, "%% %s \n", inname);
222 #endif 224 #endif
223 225
224 printf("\n"); 226 printf("\n");
225 printf("Input.................... %s\n", inname); 227 printf("Input.................... %s\n", inname);
226 printf("Output................... %s\n", outname); 228 printf("Output................... %s\n", outname);
227 printf("Encoding Mode............ %s\n", 229 printf("Encoding Mode............ %s\n",
228 (codingMode == 1) ? "Channel-Independent" : "Channel-Adaptive"); 230 (codingMode == 1) ? "Channel-Independent" : "Channel-Adaptive");
229 printf("Bottleneck............... %d bits/sec\n", bottleneck); 231 printf("Bottleneck............... %d bits/sec\n", bottleneck);
230 printf("Packet-loss Percentage... %d\n", packetLossPercent); 232 printf("Packet-loss Percentage... %d\n", packetLossPercent);
231 printf("\n"); 233 printf("\n");
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 str->lastArrivalTime = 0; 569 str->lastArrivalTime = 0;
568 570
569 str->maxPayloadLB = 0; 571 str->maxPayloadLB = 0;
570 str->maxPayloadUB = 0; 572 str->maxPayloadUB = 0;
571 str->lbBytes = 0; 573 str->lbBytes = 0;
572 str->ubBytes = 0; 574 str->ubBytes = 0;
573 575
574 return 0; 576 return 0;
575 }; 577 };
576 #endif 578 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698