diff options
Diffstat (limited to 'chromium/third_party/webrtc/modules/audio_processing/echo_cancellation_impl.cc')
-rw-r--r-- | chromium/third_party/webrtc/modules/audio_processing/echo_cancellation_impl.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/chromium/third_party/webrtc/modules/audio_processing/echo_cancellation_impl.cc b/chromium/third_party/webrtc/modules/audio_processing/echo_cancellation_impl.cc index f13ea8bde69..567d9a47f80 100644 --- a/chromium/third_party/webrtc/modules/audio_processing/echo_cancellation_impl.cc +++ b/chromium/third_party/webrtc/modules/audio_processing/echo_cancellation_impl.cc @@ -91,7 +91,7 @@ int EchoCancellationImpl::ProcessRenderAudio(const AudioBuffer* audio) { err = WebRtcAec_BufferFarend( my_handle, audio->split_bands_const_f(j)[kBand0To8kHz], - static_cast<int16_t>(audio->num_frames_per_band())); + audio->num_frames_per_band()); if (err != apm_->kNoError) { return GetHandleError(my_handle); // TODO(ajm): warning possible? @@ -133,7 +133,7 @@ int EchoCancellationImpl::ProcessCaptureAudio(AudioBuffer* audio) { audio->split_bands_const_f(i), audio->num_bands(), audio->split_bands_f(i), - static_cast<int16_t>(audio->num_frames_per_band()), + audio->num_frames_per_band(), apm_->stream_delay_ms(), stream_drift_samples_); @@ -280,6 +280,14 @@ bool EchoCancellationImpl::is_delay_logging_enabled() const { return delay_logging_enabled_; } +bool EchoCancellationImpl::is_delay_agnostic_enabled() const { + return delay_agnostic_enabled_; +} + +bool EchoCancellationImpl::is_extended_filter_enabled() const { + return extended_filter_enabled_; +} + // TODO(bjornv): How should we handle the multi-channel case? int EchoCancellationImpl::GetDelayMetrics(int* median, int* std) { float fraction_poor_delays = 0; |