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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 int EchoCancellationImpl::enable_delay_logging(bool enable) { | 273 int EchoCancellationImpl::enable_delay_logging(bool enable) { |
274 CriticalSectionScoped crit_scoped(crit_); | 274 CriticalSectionScoped crit_scoped(crit_); |
275 delay_logging_enabled_ = enable; | 275 delay_logging_enabled_ = enable; |
276 return Configure(); | 276 return Configure(); |
277 } | 277 } |
278 | 278 |
279 bool EchoCancellationImpl::is_delay_logging_enabled() const { | 279 bool EchoCancellationImpl::is_delay_logging_enabled() const { |
280 return delay_logging_enabled_; | 280 return delay_logging_enabled_; |
281 } | 281 } |
282 | 282 |
| 283 bool EchoCancellationImpl::is_extended_filter_enabled() const { |
| 284 return extended_filter_enabled_; |
| 285 } |
| 286 |
283 // TODO(bjornv): How should we handle the multi-channel case? | 287 // TODO(bjornv): How should we handle the multi-channel case? |
284 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std) { | 288 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std) { |
285 float fraction_poor_delays = 0; | 289 float fraction_poor_delays = 0; |
286 return GetDelayMetrics(median, std, &fraction_poor_delays); | 290 return GetDelayMetrics(median, std, &fraction_poor_delays); |
287 } | 291 } |
288 | 292 |
289 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std, | 293 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std, |
290 float* fraction_poor_delays) { | 294 float* fraction_poor_delays) { |
291 CriticalSectionScoped crit_scoped(crit_); | 295 CriticalSectionScoped crit_scoped(crit_); |
292 if (median == NULL) { | 296 if (median == NULL) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 int EchoCancellationImpl::num_handles_required() const { | 376 int EchoCancellationImpl::num_handles_required() const { |
373 return apm_->num_output_channels() * | 377 return apm_->num_output_channels() * |
374 apm_->num_reverse_channels(); | 378 apm_->num_reverse_channels(); |
375 } | 379 } |
376 | 380 |
377 int EchoCancellationImpl::GetHandleError(void* handle) const { | 381 int EchoCancellationImpl::GetHandleError(void* handle) const { |
378 assert(handle != NULL); | 382 assert(handle != NULL); |
379 return MapError(WebRtcAec_get_error_code(static_cast<Handle*>(handle))); | 383 return MapError(WebRtcAec_get_error_code(static_cast<Handle*>(handle))); |
380 } | 384 } |
381 } // namespace webrtc | 385 } // namespace webrtc |
OLD | NEW |