Chromium Code Reviews| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 float WebRtcNs_prior_speech_probability(NsHandle* handle) { | 50 float WebRtcNs_prior_speech_probability(NsHandle* handle) { |
| 51 NoiseSuppressionC* self = (NoiseSuppressionC*)handle; | 51 NoiseSuppressionC* self = (NoiseSuppressionC*)handle; |
| 52 if (handle == NULL) { | 52 if (handle == NULL) { |
| 53 return -1; | 53 return -1; |
| 54 } | 54 } |
| 55 if (self->initFlag == 0) { | 55 if (self->initFlag == 0) { |
| 56 return -1; | 56 return -1; |
| 57 } | 57 } |
| 58 return self->priorSpeechProb; | 58 return self->priorSpeechProb; |
| 59 } | 59 } |
| 60 | |
| 61 float* WebRtcNs_noise_estimate(NsHandle* handle) { | |
| 62 NoiseSuppressionC* self = (NoiseSuppressionC*)handle; | |
| 63 if (handle == NULL || self->initFlag == 0) { | |
| 64 return NULL; | |
|
turaj
2016/02/05 01:47:58
Is NULL preferred over nullptr in WebRTC?
aluebs-webrtc
2016/02/06 00:12:28
No, but nullptr is C++11 and this is a C file :)
| |
| 65 } | |
| 66 return self->noise; | |
| 67 } | |
| 68 | |
| 69 size_t WebRtcNs_num_freq() { | |
| 70 return HALF_ANAL_BLOCKL; | |
| 71 } | |
| OLD | NEW |