| 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 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 * farend signal | 80 * farend signal |
| 81 * int16_t nrOfSamples Number of samples in farend buffer | 81 * int16_t nrOfSamples Number of samples in farend buffer |
| 82 * | 82 * |
| 83 * Outputs Description | 83 * Outputs Description |
| 84 * ------------------------------------------------------------------- | 84 * ------------------------------------------------------------------- |
| 85 * int32_t return 0: OK | 85 * int32_t return 0: OK |
| 86 * -1: error | 86 * -1: error |
| 87 */ | 87 */ |
| 88 int32_t WebRtcAecm_BufferFarend(void* aecmInst, | 88 int32_t WebRtcAecm_BufferFarend(void* aecmInst, |
| 89 const int16_t* farend, | 89 const int16_t* farend, |
| 90 int16_t nrOfSamples); | 90 size_t nrOfSamples); |
| 91 | 91 |
| 92 /* | 92 /* |
| 93 * Runs the AECM on an 80 or 160 sample blocks of data. | 93 * Runs the AECM on an 80 or 160 sample blocks of data. |
| 94 * | 94 * |
| 95 * Inputs Description | 95 * Inputs Description |
| 96 * ------------------------------------------------------------------- | 96 * ------------------------------------------------------------------- |
| 97 * void* aecmInst Pointer to the AECM instance | 97 * void* aecmInst Pointer to the AECM instance |
| 98 * int16_t* nearendNoisy In buffer containing one frame of | 98 * int16_t* nearendNoisy In buffer containing one frame of |
| 99 * reference nearend+echo signal. If | 99 * reference nearend+echo signal. If |
| 100 * noise reduction is active, provide | 100 * noise reduction is active, provide |
| (...skipping 10 matching lines...) Expand all Loading... |
| 111 * Outputs Description | 111 * Outputs Description |
| 112 * ------------------------------------------------------------------- | 112 * ------------------------------------------------------------------- |
| 113 * int16_t* out Out buffer, one frame of processed nearend | 113 * int16_t* out Out buffer, one frame of processed nearend |
| 114 * int32_t return 0: OK | 114 * int32_t return 0: OK |
| 115 * -1: error | 115 * -1: error |
| 116 */ | 116 */ |
| 117 int32_t WebRtcAecm_Process(void* aecmInst, | 117 int32_t WebRtcAecm_Process(void* aecmInst, |
| 118 const int16_t* nearendNoisy, | 118 const int16_t* nearendNoisy, |
| 119 const int16_t* nearendClean, | 119 const int16_t* nearendClean, |
| 120 int16_t* out, | 120 int16_t* out, |
| 121 int16_t nrOfSamples, | 121 size_t nrOfSamples, |
| 122 int16_t msInSndCardBuf); | 122 int16_t msInSndCardBuf); |
| 123 | 123 |
| 124 /* | 124 /* |
| 125 * This function enables the user to set certain parameters on-the-fly | 125 * This function enables the user to set certain parameters on-the-fly |
| 126 * | 126 * |
| 127 * Inputs Description | 127 * Inputs Description |
| 128 * ------------------------------------------------------------------- | 128 * ------------------------------------------------------------------- |
| 129 * void* aecmInst Pointer to the AECM instance | 129 * void* aecmInst Pointer to the AECM instance |
| 130 * AecmConfig config Config instance that contains all | 130 * AecmConfig config Config instance that contains all |
| 131 * properties to be set | 131 * properties to be set |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 * Outputs Description | 209 * Outputs Description |
| 210 * ------------------------------------------------------------------- | 210 * ------------------------------------------------------------------- |
| 211 * int32_t return 11000-11100: error code | 211 * int32_t return 11000-11100: error code |
| 212 */ | 212 */ |
| 213 int32_t WebRtcAecm_get_error_code(void *aecmInst); | 213 int32_t WebRtcAecm_get_error_code(void *aecmInst); |
| 214 | 214 |
| 215 #ifdef __cplusplus | 215 #ifdef __cplusplus |
| 216 } | 216 } |
| 217 #endif | 217 #endif |
| 218 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AECM_INCLUDE_ECHO_CONTROL_MOBILE_H_ | 218 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AECM_INCLUDE_ECHO_CONTROL_MOBILE_H_ |
| OLD | NEW |