OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |