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

Side by Side Diff: webrtc/modules/audio_processing/agc/legacy/gain_control.h

Issue 1175903002: audio_processing: Create now returns a pointer to the object (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed review comments Created 5 years, 6 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/agc/legacy/analog_agc.c ('k') | webrtc/modules/audio_processing/echo_cancellation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698