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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/util/utility.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 unsigned int whenPackGeneratedMs; 92 unsigned int whenPackGeneratedMs;
93 unsigned int whenPrevPackLeftMs; 93 unsigned int whenPrevPackLeftMs;
94 unsigned int sendTimeMs ; /* milisecond */ 94 unsigned int sendTimeMs ; /* milisecond */
95 unsigned int arrival_time; /* samples */ 95 unsigned int arrival_time; /* samples */
96 unsigned int sample_count; /* samples, also used as "send time stamp " */ 96 unsigned int sample_count; /* samples, also used as "send time stamp " */
97 unsigned int rtp_number; 97 unsigned int rtp_number;
98 } BottleNeckModel; 98 } BottleNeckModel;
99 99
100 void get_arrival_time( 100 void get_arrival_time(
101 int current_framesamples, /* samples */ 101 int current_framesamples, /* samples */
102 int packet_size, /* bytes */ 102 size_t packet_size, /* bytes */
103 int bottleneck, /* excluding headers; bits/s */ 103 int bottleneck, /* excluding headers; bits/s */
104 BottleNeckModel* BN_data, 104 BottleNeckModel* BN_data,
105 short senderSampFreqHz, 105 short senderSampFreqHz,
106 short receiverSampFreqHz); 106 short receiverSampFreqHz);
107 107
108 /* function for reading audio data from PCM file */ 108 /* function for reading audio data from PCM file */
109 int readframe( 109 int readframe(
110 short* data, 110 short* data,
111 FILE* inp, 111 FILE* inp,
112 int length); 112 int length);
(...skipping 22 matching lines...) Expand all
135 char* stringParam, 135 char* stringParam,
136 int maxSize); 136 int maxSize);
137 137
138 #if defined(__cplusplus) 138 #if defined(__cplusplus)
139 } 139 }
140 #endif 140 #endif
141 141
142 142
143 143
144 #endif 144 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698