audio_processing/aecm: Create() now returns a pointer to the object
Changed Create() to return a pointer to the object rather than an error message, which is in line with how objects should be created. BUG=441 R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/51939004 Cr-Commit-Position: refs/heads/master@{#9315}
This commit is contained in:
@@ -42,18 +42,9 @@ extern "C" {
|
||||
/*
|
||||
* Allocates the memory needed by the AECM. The memory needs to be
|
||||
* initialized separately using the WebRtcAecm_Init() function.
|
||||
*
|
||||
* Inputs Description
|
||||
* -------------------------------------------------------------------
|
||||
* void** aecmInst Pointer to the AECM instance to be
|
||||
* created and initialized
|
||||
*
|
||||
* Outputs Description
|
||||
* -------------------------------------------------------------------
|
||||
* int32_t return 0: OK
|
||||
* -1: error
|
||||
* Returns a pointer to the instance and a nullptr at failure.
|
||||
*/
|
||||
int32_t WebRtcAecm_Create(void **aecmInst);
|
||||
void* WebRtcAecm_Create();
|
||||
|
||||
/*
|
||||
* This function releases the memory allocated by WebRtcAecm_Create()
|
||||
|
||||
Reference in New Issue
Block a user