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:
Bjorn Volcker
2015-05-28 15:58:42 +02:00
parent 71861a0e20
commit a743794d06
5 changed files with 23 additions and 74 deletions

View File

@@ -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()