2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-01-25 19:21:13 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_
|
|
|
|
|
#define MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2016-05-05 13:34:29 -07:00
|
|
|
#include <memory>
|
|
|
|
|
|
Update a ton of audio code to use size_t more correctly and in general reduce
use of int16_t/uint16_t.
This is the upshot of a recommendation by henrik.lundin and kwiberg on an original small change ( https://webrtc-codereview.appspot.com/42569004/#ps1 ) to stop using int16_t just because values could fit in it, and is similar in nature to a previous "mass change to use size_t more" ( https://webrtc-codereview.appspot.com/23129004/ ) which also needed to be split up for review but to land all at once, since, like adding "const", such changes tend to cause a lot of transitive effects.
This was be reviewed and approved in pieces:
https://codereview.webrtc.org/1224093003
https://codereview.webrtc.org/1224123002
https://codereview.webrtc.org/1224163002
https://codereview.webrtc.org/1225133003
https://codereview.webrtc.org/1225173002
https://codereview.webrtc.org/1227163003
https://codereview.webrtc.org/1227203003
https://codereview.webrtc.org/1227213002
https://codereview.webrtc.org/1227893002
https://codereview.webrtc.org/1228793004
https://codereview.webrtc.org/1228803003
https://codereview.webrtc.org/1228823002
https://codereview.webrtc.org/1228823003
https://codereview.webrtc.org/1228843002
https://codereview.webrtc.org/1230693002
https://codereview.webrtc.org/1231713002
The change is being landed as TBR to all the folks who reviewed the above.
BUG=chromium:81439
TEST=none
R=andrew@webrtc.org, pbos@webrtc.org
TBR=aluebs, andrew, asapersson, henrika, hlundin, jan.skoglund, kwiberg, minyue, pbos, pthatcher
Review URL: https://codereview.webrtc.org/1230503003 .
Cr-Commit-Position: refs/heads/master@{#9768}
2015-08-24 14:52:23 -07:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
2016-05-05 13:34:29 -07:00
|
|
|
extern "C" {
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "common_audio/ring_buffer.h"
|
2016-05-05 13:34:29 -07:00
|
|
|
}
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "modules/audio_processing/aec/aec_core.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2016-03-05 08:39:21 -08:00
|
|
|
namespace webrtc {
|
|
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
// Errors
|
2013-10-08 23:41:42 +00:00
|
|
|
#define AEC_UNSPECIFIED_ERROR 12000
|
|
|
|
|
#define AEC_UNSUPPORTED_FUNCTION_ERROR 12001
|
|
|
|
|
#define AEC_UNINITIALIZED_ERROR 12002
|
|
|
|
|
#define AEC_NULL_POINTER_ERROR 12003
|
|
|
|
|
#define AEC_BAD_PARAMETER_ERROR 12004
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
// Warnings
|
2013-10-08 23:41:42 +00:00
|
|
|
#define AEC_BAD_PARAMETER_WARNING 12050
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2016-01-29 07:46:13 -08:00
|
|
|
enum { kAecNlpConservative = 0, kAecNlpModerate, kAecNlpAggressive };
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2016-01-29 07:46:13 -08:00
|
|
|
enum { kAecFalse = 0, kAecTrue };
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
typedef struct {
|
2013-10-08 23:41:42 +00:00
|
|
|
int16_t nlpMode; // default kAecNlpModerate
|
|
|
|
|
int16_t skewMode; // default kAecFalse
|
|
|
|
|
int16_t metricsMode; // default kAecFalse
|
|
|
|
|
int delay_logging; // default kAecFalse
|
|
|
|
|
// float realSkew;
|
2011-07-07 08:21:25 +00:00
|
|
|
} AecConfig;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2013-02-15 18:40:34 +00:00
|
|
|
int instant;
|
|
|
|
|
int average;
|
|
|
|
|
int max;
|
|
|
|
|
int min;
|
2011-07-07 08:21:25 +00:00
|
|
|
} AecLevel;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2013-10-08 23:41:42 +00:00
|
|
|
AecLevel rerl;
|
|
|
|
|
AecLevel erl;
|
|
|
|
|
AecLevel erle;
|
|
|
|
|
AecLevel aNlp;
|
2016-04-07 06:36:43 -07:00
|
|
|
float divergent_filter_fraction;
|
2011-07-07 08:21:25 +00:00
|
|
|
} AecMetrics;
|
|
|
|
|
|
2013-02-27 21:03:41 +00:00
|
|
|
struct AecCore;
|
|
|
|
|
|
2016-05-05 13:34:29 -07:00
|
|
|
class ApmDataDumper;
|
|
|
|
|
|
|
|
|
|
typedef struct Aec {
|
2016-08-29 14:46:07 -07:00
|
|
|
Aec();
|
|
|
|
|
~Aec();
|
|
|
|
|
|
2016-05-05 13:34:29 -07:00
|
|
|
std::unique_ptr<ApmDataDumper> data_dumper;
|
|
|
|
|
|
|
|
|
|
int delayCtr;
|
|
|
|
|
int sampFreq;
|
|
|
|
|
int splitSampFreq;
|
|
|
|
|
int scSampFreq;
|
|
|
|
|
float sampFactor; // scSampRate / sampFreq
|
|
|
|
|
short skewMode;
|
|
|
|
|
int bufSizeStart;
|
|
|
|
|
int knownDelay;
|
|
|
|
|
int rate_factor;
|
|
|
|
|
|
|
|
|
|
short initFlag; // indicates if AEC has been initialized
|
|
|
|
|
|
|
|
|
|
// Variables used for averaging far end buffer size
|
|
|
|
|
short counter;
|
|
|
|
|
int sum;
|
|
|
|
|
short firstVal;
|
|
|
|
|
short checkBufSizeCtr;
|
|
|
|
|
|
|
|
|
|
// Variables used for delay shifts
|
|
|
|
|
short msInSndCardBuf;
|
|
|
|
|
short filtDelay; // Filtered delay estimate.
|
|
|
|
|
int timeForDelayChange;
|
|
|
|
|
int startup_phase;
|
|
|
|
|
int checkBuffSize;
|
|
|
|
|
short lastDelayDiff;
|
|
|
|
|
|
|
|
|
|
// Structures
|
|
|
|
|
void* resampler;
|
|
|
|
|
|
|
|
|
|
int skewFrCtr;
|
|
|
|
|
int resample; // if the skew is small enough we don't resample
|
|
|
|
|
int highSkewCtr;
|
|
|
|
|
float skew;
|
|
|
|
|
|
|
|
|
|
RingBuffer* far_pre_buf; // Time domain far-end pre-buffer.
|
|
|
|
|
|
|
|
|
|
int farend_started;
|
|
|
|
|
|
|
|
|
|
// Aec instance counter.
|
|
|
|
|
static int instance_count;
|
|
|
|
|
AecCore* aec;
|
|
|
|
|
} Aec;
|
|
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
/*
|
|
|
|
|
* Allocates the memory needed by the AEC. The memory needs to be initialized
|
2015-06-10 21:43:36 +02:00
|
|
|
* separately using the WebRtcAec_Init() function. Returns a pointer to the
|
|
|
|
|
* object or NULL on error.
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2015-06-10 21:43:36 +02:00
|
|
|
void* WebRtcAec_Create();
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* This function releases the memory allocated by WebRtcAec_Create().
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* void* aecInst Pointer to the AEC instance
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2015-04-10 07:56:57 +02:00
|
|
|
void WebRtcAec_Free(void* aecInst);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Initializes an AEC instance.
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* void* aecInst Pointer to the AEC instance
|
2013-04-10 07:50:54 +00:00
|
|
|
* int32_t sampFreq Sampling frequency of data
|
|
|
|
|
* int32_t scSampFreq Soundcard sampling frequency
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2013-04-10 07:50:54 +00:00
|
|
|
* int32_t return 0: OK
|
|
|
|
|
* -1: error
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2013-10-08 23:41:42 +00:00
|
|
|
int32_t WebRtcAec_Init(void* aecInst, int32_t sampFreq, int32_t scSampFreq);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Inserts an 80 or 160 sample block of data into the farend buffer.
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* void* aecInst Pointer to the AEC instance
|
2014-07-03 09:47:33 +00:00
|
|
|
* const float* farend In buffer containing one frame of
|
2011-07-07 08:21:25 +00:00
|
|
|
* farend signal for L band
|
2013-04-10 07:50:54 +00:00
|
|
|
* int16_t nrOfSamples Number of samples in farend buffer
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2013-04-10 07:50:54 +00:00
|
|
|
* int32_t return 0: OK
|
2015-11-09 23:53:50 -08:00
|
|
|
* 12000-12050: error code
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2013-10-08 23:41:42 +00:00
|
|
|
int32_t WebRtcAec_BufferFarend(void* aecInst,
|
2014-07-03 09:47:33 +00:00
|
|
|
const float* farend,
|
Update a ton of audio code to use size_t more correctly and in general reduce
use of int16_t/uint16_t.
This is the upshot of a recommendation by henrik.lundin and kwiberg on an original small change ( https://webrtc-codereview.appspot.com/42569004/#ps1 ) to stop using int16_t just because values could fit in it, and is similar in nature to a previous "mass change to use size_t more" ( https://webrtc-codereview.appspot.com/23129004/ ) which also needed to be split up for review but to land all at once, since, like adding "const", such changes tend to cause a lot of transitive effects.
This was be reviewed and approved in pieces:
https://codereview.webrtc.org/1224093003
https://codereview.webrtc.org/1224123002
https://codereview.webrtc.org/1224163002
https://codereview.webrtc.org/1225133003
https://codereview.webrtc.org/1225173002
https://codereview.webrtc.org/1227163003
https://codereview.webrtc.org/1227203003
https://codereview.webrtc.org/1227213002
https://codereview.webrtc.org/1227893002
https://codereview.webrtc.org/1228793004
https://codereview.webrtc.org/1228803003
https://codereview.webrtc.org/1228823002
https://codereview.webrtc.org/1228823003
https://codereview.webrtc.org/1228843002
https://codereview.webrtc.org/1230693002
https://codereview.webrtc.org/1231713002
The change is being landed as TBR to all the folks who reviewed the above.
BUG=chromium:81439
TEST=none
R=andrew@webrtc.org, pbos@webrtc.org
TBR=aluebs, andrew, asapersson, henrika, hlundin, jan.skoglund, kwiberg, minyue, pbos, pthatcher
Review URL: https://codereview.webrtc.org/1230503003 .
Cr-Commit-Position: refs/heads/master@{#9768}
2015-08-24 14:52:23 -07:00
|
|
|
size_t nrOfSamples);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-11-09 23:53:50 -08:00
|
|
|
/*
|
|
|
|
|
* Reports any errors that would arise if buffering a farend buffer
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
|
* void* aecInst Pointer to the AEC instance
|
|
|
|
|
* const float* farend In buffer containing one frame of
|
|
|
|
|
* farend signal for L band
|
|
|
|
|
* int16_t nrOfSamples Number of samples in farend buffer
|
|
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
|
* int32_t return 0: OK
|
|
|
|
|
* 12000-12050: error code
|
|
|
|
|
*/
|
|
|
|
|
int32_t WebRtcAec_GetBufferFarendError(void* aecInst,
|
|
|
|
|
const float* farend,
|
|
|
|
|
size_t nrOfSamples);
|
|
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
/*
|
|
|
|
|
* Runs the echo canceller on an 80 or 160 sample blocks of data.
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* void* aecInst Pointer to the AEC instance
|
2015-01-21 19:10:55 +00:00
|
|
|
* float* const* nearend In buffer containing one frame of
|
|
|
|
|
* nearend+echo signal for each band
|
|
|
|
|
* int num_bands Number of bands in nearend buffer
|
2013-04-10 07:50:54 +00:00
|
|
|
* int16_t nrOfSamples Number of samples in nearend buffer
|
|
|
|
|
* int16_t msInSndCardBuf Delay estimate for sound card and
|
2011-07-07 08:21:25 +00:00
|
|
|
* system buffers
|
2013-04-10 07:50:54 +00:00
|
|
|
* int16_t skew Difference between number of samples played
|
2011-07-07 08:21:25 +00:00
|
|
|
* and recorded at the soundcard (for clock skew
|
|
|
|
|
* compensation)
|
|
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2015-01-21 19:10:55 +00:00
|
|
|
* float* const* out Out buffer, one frame of processed nearend
|
|
|
|
|
* for each band
|
2013-04-10 07:50:54 +00:00
|
|
|
* int32_t return 0: OK
|
2015-11-09 23:53:50 -08:00
|
|
|
* 12000-12050: error code
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2013-10-08 23:41:42 +00:00
|
|
|
int32_t WebRtcAec_Process(void* aecInst,
|
2015-01-21 19:10:55 +00:00
|
|
|
const float* const* nearend,
|
Update a ton of audio code to use size_t more correctly and in general reduce
use of int16_t/uint16_t.
This is the upshot of a recommendation by henrik.lundin and kwiberg on an original small change ( https://webrtc-codereview.appspot.com/42569004/#ps1 ) to stop using int16_t just because values could fit in it, and is similar in nature to a previous "mass change to use size_t more" ( https://webrtc-codereview.appspot.com/23129004/ ) which also needed to be split up for review but to land all at once, since, like adding "const", such changes tend to cause a lot of transitive effects.
This was be reviewed and approved in pieces:
https://codereview.webrtc.org/1224093003
https://codereview.webrtc.org/1224123002
https://codereview.webrtc.org/1224163002
https://codereview.webrtc.org/1225133003
https://codereview.webrtc.org/1225173002
https://codereview.webrtc.org/1227163003
https://codereview.webrtc.org/1227203003
https://codereview.webrtc.org/1227213002
https://codereview.webrtc.org/1227893002
https://codereview.webrtc.org/1228793004
https://codereview.webrtc.org/1228803003
https://codereview.webrtc.org/1228823002
https://codereview.webrtc.org/1228823003
https://codereview.webrtc.org/1228843002
https://codereview.webrtc.org/1230693002
https://codereview.webrtc.org/1231713002
The change is being landed as TBR to all the folks who reviewed the above.
BUG=chromium:81439
TEST=none
R=andrew@webrtc.org, pbos@webrtc.org
TBR=aluebs, andrew, asapersson, henrika, hlundin, jan.skoglund, kwiberg, minyue, pbos, pthatcher
Review URL: https://codereview.webrtc.org/1230503003 .
Cr-Commit-Position: refs/heads/master@{#9768}
2015-08-24 14:52:23 -07:00
|
|
|
size_t num_bands,
|
2015-01-21 19:10:55 +00:00
|
|
|
float* const* out,
|
Update a ton of audio code to use size_t more correctly and in general reduce
use of int16_t/uint16_t.
This is the upshot of a recommendation by henrik.lundin and kwiberg on an original small change ( https://webrtc-codereview.appspot.com/42569004/#ps1 ) to stop using int16_t just because values could fit in it, and is similar in nature to a previous "mass change to use size_t more" ( https://webrtc-codereview.appspot.com/23129004/ ) which also needed to be split up for review but to land all at once, since, like adding "const", such changes tend to cause a lot of transitive effects.
This was be reviewed and approved in pieces:
https://codereview.webrtc.org/1224093003
https://codereview.webrtc.org/1224123002
https://codereview.webrtc.org/1224163002
https://codereview.webrtc.org/1225133003
https://codereview.webrtc.org/1225173002
https://codereview.webrtc.org/1227163003
https://codereview.webrtc.org/1227203003
https://codereview.webrtc.org/1227213002
https://codereview.webrtc.org/1227893002
https://codereview.webrtc.org/1228793004
https://codereview.webrtc.org/1228803003
https://codereview.webrtc.org/1228823002
https://codereview.webrtc.org/1228823003
https://codereview.webrtc.org/1228843002
https://codereview.webrtc.org/1230693002
https://codereview.webrtc.org/1231713002
The change is being landed as TBR to all the folks who reviewed the above.
BUG=chromium:81439
TEST=none
R=andrew@webrtc.org, pbos@webrtc.org
TBR=aluebs, andrew, asapersson, henrika, hlundin, jan.skoglund, kwiberg, minyue, pbos, pthatcher
Review URL: https://codereview.webrtc.org/1230503003 .
Cr-Commit-Position: refs/heads/master@{#9768}
2015-08-24 14:52:23 -07:00
|
|
|
size_t nrOfSamples,
|
2013-04-10 07:50:54 +00:00
|
|
|
int16_t msInSndCardBuf,
|
|
|
|
|
int32_t skew);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* This function enables the user to set certain parameters on-the-fly.
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* void* handle Pointer to the AEC instance
|
2011-07-07 08:21:25 +00:00
|
|
|
* AecConfig config Config instance that contains all
|
|
|
|
|
* properties to be set
|
|
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2015-11-09 23:53:50 -08:00
|
|
|
* int return 0: OK
|
|
|
|
|
* 12000-12050: error code
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2013-02-20 17:09:47 +00:00
|
|
|
int WebRtcAec_set_config(void* handle, AecConfig config);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Gets the current echo status of the nearend signal.
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* void* handle Pointer to the AEC instance
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* int* status 0: Almost certainly nearend single-talk
|
2011-07-07 08:21:25 +00:00
|
|
|
* 1: Might not be neared single-talk
|
2015-11-09 23:53:50 -08:00
|
|
|
* int return 0: OK
|
|
|
|
|
* 12000-12050: error code
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2013-02-15 17:01:03 +00:00
|
|
|
int WebRtcAec_get_echo_status(void* handle, int* status);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Gets the current echo metrics for the session.
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* void* handle Pointer to the AEC instance
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2014-05-12 09:55:19 +00:00
|
|
|
* AecMetrics* metrics Struct which will be filled out with the
|
2011-07-07 08:21:25 +00:00
|
|
|
* current echo metrics.
|
2015-11-09 23:53:50 -08:00
|
|
|
* int return 0: OK
|
|
|
|
|
* 12000-12050: error code
|
2011-07-07 08:21:25 +00:00
|
|
|
*/
|
2013-02-15 18:40:34 +00:00
|
|
|
int WebRtcAec_GetMetrics(void* handle, AecMetrics* metrics);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-10-03 08:18:10 +00:00
|
|
|
/*
|
|
|
|
|
* Gets the current delay metrics for the session.
|
|
|
|
|
*
|
|
|
|
|
* Inputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2015-02-03 06:06:26 +00:00
|
|
|
* void* handle Pointer to the AEC instance
|
2011-10-03 08:18:10 +00:00
|
|
|
*
|
|
|
|
|
* Outputs Description
|
|
|
|
|
* -------------------------------------------------------------------
|
2015-02-03 06:06:26 +00:00
|
|
|
* int* median Delay median value.
|
|
|
|
|
* int* std Delay standard deviation.
|
|
|
|
|
* float* fraction_poor_delays Fraction of the delay estimates that may
|
|
|
|
|
* cause the AEC to perform poorly.
|
2011-10-03 08:18:10 +00:00
|
|
|
*
|
2015-11-09 23:53:50 -08:00
|
|
|
* int return 0: OK
|
|
|
|
|
* 12000-12050: error code
|
2011-10-03 08:18:10 +00:00
|
|
|
*/
|
2015-02-03 06:06:26 +00:00
|
|
|
int WebRtcAec_GetDelayMetrics(void* handle,
|
|
|
|
|
int* median,
|
|
|
|
|
int* std,
|
|
|
|
|
float* fraction_poor_delays);
|
2011-10-03 08:18:10 +00:00
|
|
|
|
2013-02-27 21:03:41 +00:00
|
|
|
// Returns a pointer to the low level AEC handle.
|
|
|
|
|
//
|
|
|
|
|
// Input:
|
|
|
|
|
// - handle : Pointer to the AEC instance.
|
|
|
|
|
//
|
|
|
|
|
// Return value:
|
|
|
|
|
// - AecCore pointer : NULL for error.
|
|
|
|
|
//
|
|
|
|
|
struct AecCore* WebRtcAec_aec_core(void* handle);
|
|
|
|
|
|
2016-03-05 08:39:21 -08:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_
|