Redesign of the render buffering in AEC3
This CL centralizes the render buffering in AEC3 so that all render buffers are updated and synchronized/aligned with the render alignment buffer. Bug: webrtc:8597, chromium:790905 Change-Id: I8a94e5c1f27316b6100b420eec9652ea31c1a91d Reviewed-on: https://webrtc-review.googlesource.com/25680 Commit-Queue: Per Åhgren <peah@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20989}
This commit is contained in:
@ -30,8 +30,8 @@ void IdentifySmallNarrowBandRegions(
|
||||
return;
|
||||
}
|
||||
|
||||
const std::array<float, kFftLengthBy2Plus1>& X2 =
|
||||
render_buffer.Spectrum(*delay_partitions);
|
||||
rtc::ArrayView<const float> X2 = render_buffer.Spectrum(*delay_partitions);
|
||||
RTC_DCHECK_EQ(kFftLengthBy2Plus1, X2.size());
|
||||
|
||||
for (size_t k = 1; k < (X2.size() - 1); ++k) {
|
||||
(*narrow_band_counters)[k - 1] = X2[k] > 3 * std::max(X2[k - 1], X2[k + 1])
|
||||
|
||||
Reference in New Issue
Block a user