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

Side by Side Diff: webrtc/modules/audio_processing/aec/include/echo_cancellation.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } AecMetrics; 57 } AecMetrics;
58 58
59 struct AecCore; 59 struct AecCore;
60 60
61 #ifdef __cplusplus 61 #ifdef __cplusplus
62 extern "C" { 62 extern "C" {
63 #endif 63 #endif
64 64
65 /* 65 /*
66 * Allocates the memory needed by the AEC. The memory needs to be initialized 66 * Allocates the memory needed by the AEC. The memory needs to be initialized
67 * separately using the WebRtcAec_Init() function. 67 * separately using the WebRtcAec_Init() function. Returns a pointer to the
68 * 68 * object or NULL on error.
69 * Inputs Description
70 * -------------------------------------------------------------------
71 * void** aecInst Pointer to the AEC instance to be created
72 * and initialized
73 *
74 * Outputs Description
75 * -------------------------------------------------------------------
76 * int32_t return 0: OK
77 * -1: error
78 */ 69 */
79 int32_t WebRtcAec_Create(void** aecInst); 70 void* WebRtcAec_Create();
80 71
81 /* 72 /*
82 * This function releases the memory allocated by WebRtcAec_Create(). 73 * This function releases the memory allocated by WebRtcAec_Create().
83 * 74 *
84 * Inputs Description 75 * Inputs Description
85 * ------------------------------------------------------------------- 76 * -------------------------------------------------------------------
86 * void* aecInst Pointer to the AEC instance 77 * void* aecInst Pointer to the AEC instance
87 */ 78 */
88 void WebRtcAec_Free(void* aecInst); 79 void WebRtcAec_Free(void* aecInst);
89 80
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // 234 //
244 // Return value: 235 // Return value:
245 // - AecCore pointer : NULL for error. 236 // - AecCore pointer : NULL for error.
246 // 237 //
247 struct AecCore* WebRtcAec_aec_core(void* handle); 238 struct AecCore* WebRtcAec_aec_core(void* handle);
248 239
249 #ifdef __cplusplus 240 #ifdef __cplusplus
250 } 241 }
251 #endif 242 #endif
252 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_INCLUDE_ECHO_CANCELLATION_H_ 243 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_INCLUDE_ECHO_CANCELLATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698