From 3c918b1af80e93c636233e88ac1ecba016ec30f9 Mon Sep 17 00:00:00 2001 From: Gustaf Ullberg Date: Fri, 11 Oct 2019 13:14:44 +0200 Subject: [PATCH] Fix bypass of unnecessary resampling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change fixes an issue with bypass of unnecessary resampling when using ProcessStream(AudioFrame*). Bug: b/130016532 Change-Id: I887f05d55aaa47f21164ba237cf83d0be33a1fd5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/156540 Reviewed-by: Per Ã…hgren Commit-Queue: Gustaf Ullberg Cr-Commit-Position: refs/heads/master@{#29446} --- modules/audio_processing/audio_processing_impl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/audio_processing/audio_processing_impl.cc b/modules/audio_processing/audio_processing_impl.cc index 3a70791bec..564a9804e8 100644 --- a/modules/audio_processing/audio_processing_impl.cc +++ b/modules/audio_processing/audio_processing_impl.cc @@ -1297,6 +1297,9 @@ int AudioProcessingImpl::ProcessStream(AudioFrame* frame) { } capture_.capture_audio->CopyFrom(frame); + if (capture_.capture_fullband_audio) { + capture_.capture_fullband_audio->CopyFrom(frame); + } RETURN_ON_ERR(ProcessCaptureStreamLocked()); if (submodule_states_.CaptureMultiBandProcessingPresent() || submodule_states_.CaptureFullBandProcessingActive()) {