| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_H_ |
| 13 | 13 |
| 14 #include "webrtc/typedefs.h" | 14 #include "webrtc/typedefs.h" |
| 15 | 15 |
| 16 typedef struct NsHandleT NsHandle; | 16 typedef struct NsHandleT NsHandle; |
| 17 | 17 |
| 18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
| 19 extern "C" { | 19 extern "C" { |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 /* | 22 /* |
| 23 * This function creates an instance to the noise suppression structure | 23 * This function creates an instance of the floating point Noise Suppression. |
| 24 * | |
| 25 * Input: | |
| 26 * - NS_inst : Pointer to noise suppression instance that should be | |
| 27 * created | |
| 28 * | |
| 29 * Output: | |
| 30 * - NS_inst : Pointer to created noise suppression instance | |
| 31 * | |
| 32 * Return value : 0 - Ok | |
| 33 * -1 - Error | |
| 34 */ | 24 */ |
| 35 int WebRtcNs_Create(NsHandle** NS_inst); | 25 NsHandle* WebRtcNs_Create(); |
| 36 | |
| 37 | 26 |
| 38 /* | 27 /* |
| 39 * This function frees the dynamic memory of a specified noise suppression | 28 * This function frees the dynamic memory of a specified noise suppression |
| 40 * instance. | 29 * instance. |
| 41 * | 30 * |
| 42 * Input: | 31 * Input: |
| 43 * - NS_inst : Pointer to NS instance that should be freed | 32 * - NS_inst : Pointer to NS instance that should be freed |
| 44 */ | 33 */ |
| 45 void WebRtcNs_Free(NsHandle* NS_inst); | 34 void WebRtcNs_Free(NsHandle* NS_inst); |
| 46 | 35 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 * Return value : Prior speech probability in interval [0.0, 1.0]. | 105 * Return value : Prior speech probability in interval [0.0, 1.0]. |
| 117 * -1 - NULL pointer or uninitialized instance. | 106 * -1 - NULL pointer or uninitialized instance. |
| 118 */ | 107 */ |
| 119 float WebRtcNs_prior_speech_probability(NsHandle* handle); | 108 float WebRtcNs_prior_speech_probability(NsHandle* handle); |
| 120 | 109 |
| 121 #ifdef __cplusplus | 110 #ifdef __cplusplus |
| 122 } | 111 } |
| 123 #endif | 112 #endif |
| 124 | 113 |
| 125 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_H_ | 114 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_H_ |
| OLD | NEW |