Skip to content

Commit 05cd6df

Browse files
committed
Update aec.cpp
1 parent 6afe94e commit 05cd6df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webrtc-sys/src/aec.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ void Aec::cancel_echo(int16_t* cap,
4747

4848
if (SampleRateSupportsMultiBand(options_.sample_rate)) {
4949
cap_buf_->MergeFrequencyBands();
50-
rend_buf_->SplitIntoFrequencyBands();
5150
}
5251

5352
cap_buf_->CopyTo(stream_cfg, cap);
5453
}
5554

5655
std::unique_ptr<Aec> create_aec(int sample_rate, int num_channels) {
57-
if (sample_rate != 16000 && sample_rate != 32000 && sample_rate != 48000)
56+
if (sample_rate != 8000 && sample_rate != 16000 && sample_rate != 32000 && sample_rate != 48000)
5857
return nullptr;
5958

6059
return std::make_unique<Aec>(AecOptions{sample_rate, num_channels});

0 commit comments

Comments
 (0)