Index: webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
diff --git a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
index 7c6760d666e44179e980348eb84ae0679f09a330..f2df5f79849f7fb98a85022506c4cceb26423588 100644 |
--- a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
+++ b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
@@ -206,12 +206,6 @@ |
handle_index++; |
} |
- for (size_t band = 1u; band < audio->num_bands(); ++band) { |
- memset(audio->split_bands(i)[band], |
- 0, |
- audio->num_frames_per_band() * |
- sizeof(audio->split_bands(i)[band][0])); |
- } |
} |
return AudioProcessing::kNoError; |
@@ -319,8 +313,8 @@ |
} |
} |
- if (apm_->proc_split_sample_rate_hz() > AudioProcessing::kSampleRate16kHz) { |
- LOG(LS_ERROR) << "AECM only supports 16 kHz or lower split sample rates"; |
+ if (apm_->proc_sample_rate_hz() > AudioProcessing::kSampleRate16kHz) { |
+ LOG(LS_ERROR) << "AECM only supports 16 kHz or lower sample rates"; |
return AudioProcessing::kBadSampleRateError; |
} |
@@ -376,7 +370,7 @@ |
rtc::CritScope cs_capture(crit_capture_); |
assert(handle != NULL); |
Handle* my_handle = static_cast<Handle*>(handle); |
- if (WebRtcAecm_Init(my_handle, apm_->proc_split_sample_rate_hz()) != 0) { |
+ if (WebRtcAecm_Init(my_handle, apm_->proc_sample_rate_hz()) != 0) { |
return GetHandleError(my_handle); |
} |
if (external_echo_path_ != NULL) { |