The initialization of the echo detector should always signal that the input audio is mono.
Since we always pass in the first audio channel, we should always pass 1 as the number of channels in the initialization function. Bug: webrtc:8732 Change-Id: I978edb125d7cc701a5e07193256327908be00560 Reviewed-on: https://webrtc-review.googlesource.com/69660 Commit-Queue: Ivo Creusen <ivoc@webrtc.org> Reviewed-by: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22885}
This commit is contained in:
@ -1866,9 +1866,8 @@ void AudioProcessingImpl::InitializePreAmplifier() {
|
||||
void AudioProcessingImpl::InitializeResidualEchoDetector() {
|
||||
RTC_DCHECK(private_submodules_->echo_detector);
|
||||
private_submodules_->echo_detector->Initialize(
|
||||
proc_sample_rate_hz(), num_proc_channels(),
|
||||
formats_.render_processing_format.sample_rate_hz(),
|
||||
formats_.render_processing_format.num_channels());
|
||||
proc_sample_rate_hz(), 1,
|
||||
formats_.render_processing_format.sample_rate_hz(), 1);
|
||||
}
|
||||
|
||||
void AudioProcessingImpl::InitializePostProcessor() {
|
||||
|
||||
Reference in New Issue
Block a user