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_delay_agnostic_enabled() const { |
| 284 return delay_agnostic_enabled_; |
| 285 } |
| 286 |
| 287 bool EchoCancellationImpl::is_extended_filter_enabled() const { |
| 288 return extended_filter_enabled_; |
| 289 } |
| 290 |
283 // TODO(bjornv): How should we handle the multi-channel case? | 291 // TODO(bjornv): How should we handle the multi-channel case? |
284 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std) { | 292 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std) { |
285 float fraction_poor_delays = 0; | 293 float fraction_poor_delays = 0; |
286 return GetDelayMetrics(median, std, &fraction_poor_delays); | 294 return GetDelayMetrics(median, std, &fraction_poor_delays); |
287 } | 295 } |
288 | 296 |
289 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std, | 297 int EchoCancellationImpl::GetDelayMetrics(int* median, int* std, |
290 float* fraction_poor_delays) { | 298 float* fraction_poor_delays) { |
291 CriticalSectionScoped crit_scoped(crit_); | 299 CriticalSectionScoped crit_scoped(crit_); |
292 if (median == NULL) { | 300 if (median == NULL) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 int EchoCancellationImpl::num_handles_required() const { | 380 int EchoCancellationImpl::num_handles_required() const { |
373 return apm_->num_output_channels() * | 381 return apm_->num_output_channels() * |
374 apm_->num_reverse_channels(); | 382 apm_->num_reverse_channels(); |
375 } | 383 } |
376 | 384 |
377 int EchoCancellationImpl::GetHandleError(void* handle) const { | 385 int EchoCancellationImpl::GetHandleError(void* handle) const { |
378 assert(handle != NULL); | 386 assert(handle != NULL); |
379 return MapError(WebRtcAec_get_error_code(static_cast<Handle*>(handle))); | 387 return MapError(WebRtcAec_get_error_code(static_cast<Handle*>(handle))); |
380 } | 388 } |
381 } // namespace webrtc | 389 } // namespace webrtc |
OLD | NEW |