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..7a5fc428c16cd34a8beef4967558b3b99da69838 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,25 @@ 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 provided using WebRtcNsx_num_freq(). |
+ * |
+ * Input |
+ * - nsxInst : NSx instance. Needs to be initiated before call. |
+ * |
+ * Return value : Pointer to the noise estimate per frequency bin. |
+ * Returns NULL if the input is a NULL pointer or an |
+ * uninitialized instance. |
+ */ |
+const uint32_t* WebRtcNsx_noise_estimate(const 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 |