| Index: webrtc/modules/audio_processing/ns/noise_suppression_x.h
|
| diff --git a/webrtc/modules/audio_processing/ns/noise_suppression_x.h b/webrtc/modules/audio_processing/ns/noise_suppression_x.h
|
| index 02b44cc09108ee876bc6799d945b6a9c1579ba0f..47f619f5109fb98a770bf86b51dfba8336183079 100644
|
| --- a/webrtc/modules/audio_processing/ns/noise_suppression_x.h
|
| +++ b/webrtc/modules/audio_processing/ns/noise_suppression_x.h
|
| @@ -11,6 +11,8 @@
|
| #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_NS_NOISE_SUPPRESSION_X_H_
|
| #define WEBRTC_MODULES_AUDIO_PROCESSING_NS_NOISE_SUPPRESSION_X_H_
|
|
|
| +#include <stddef.h>
|
| +
|
| #include "webrtc/typedefs.h"
|
|
|
| typedef struct NsxHandleT NsxHandle;
|
| @@ -81,6 +83,24 @@ void WebRtcNsx_Process(NsxHandle* nsxInst,
|
| int num_bands,
|
| short* const* outFrame);
|
|
|
| +/* Returns a pointer to the noise estimate per frequency bin. The number of
|
| + * frequency bins can be get using WebRtcNsx_num_freq().
|
| + *
|
| + * Input
|
| + * - nsxInst : NSx instance. Needs to be initiated before call.
|
| + *
|
| + * Return value : Pointer to the noise estimate per frequency bin.
|
| + * NULL pointer - NULL pointer or uninitialized instance.
|
| + */
|
| +uint32_t* WebRtcNsx_noise_estimate(NsxHandle* nsxInst);
|
| +
|
| +/* Returns the number of frequency bins, which is the length of the noise
|
| + * estimate for example.
|
| + *
|
| + * Return value : Number of frequency bins.
|
| + */
|
| +size_t WebRtcNsx_num_freq();
|
| +
|
| #ifdef __cplusplus
|
| }
|
| #endif
|
|
|