OLD | NEW |
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 * Output: | 193 * Output: |
194 * - config : config struct | 194 * - config : config struct |
195 * | 195 * |
196 * Return value: | 196 * Return value: |
197 * : 0 - Normal operation. | 197 * : 0 - Normal operation. |
198 * : -1 - Error | 198 * : -1 - Error |
199 */ | 199 */ |
200 int WebRtcAgc_get_config(void* agcInst, WebRtcAgcConfig* config); | 200 int WebRtcAgc_get_config(void* agcInst, WebRtcAgcConfig* config); |
201 | 201 |
202 /* | 202 /* |
203 * This function creates an AGC instance, which will contain the state | 203 * This function creates and returns an AGC instance, which will contain the |
204 * information for one (duplex) channel. | 204 * state information for one (duplex) channel. |
205 * | |
206 * Return value : AGC instance if successful | |
207 * : 0 (i.e., a NULL pointer) if unsuccessful | |
208 */ | 205 */ |
209 int WebRtcAgc_Create(void **agcInst); | 206 void* WebRtcAgc_Create(); |
210 | 207 |
211 /* | 208 /* |
212 * This function frees the AGC instance created at the beginning. | 209 * This function frees the AGC instance created at the beginning. |
213 * | 210 * |
214 * Input: | 211 * Input: |
215 * - agcInst : AGC instance. | 212 * - agcInst : AGC instance. |
216 */ | 213 */ |
217 void WebRtcAgc_Free(void* agcInst); | 214 void WebRtcAgc_Free(void* agcInst); |
218 | 215 |
219 /* | 216 /* |
(...skipping 16 matching lines...) Expand all Loading... |
236 int32_t minLevel, | 233 int32_t minLevel, |
237 int32_t maxLevel, | 234 int32_t maxLevel, |
238 int16_t agcMode, | 235 int16_t agcMode, |
239 uint32_t fs); | 236 uint32_t fs); |
240 | 237 |
241 #if defined(__cplusplus) | 238 #if defined(__cplusplus) |
242 } | 239 } |
243 #endif | 240 #endif |
244 | 241 |
245 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_LEGACY_GAIN_CONTROL_H_ | 242 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_LEGACY_GAIN_CONTROL_H_ |
OLD | NEW |