Fix bypass of unnecessary resampling
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 <peah@webrtc.org> Commit-Queue: Gustaf Ullberg <gustaf@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29446}
This commit is contained in:

committed by
Commit Bot

parent
51bf200294
commit
3c918b1af8
@ -1297,6 +1297,9 @@ int AudioProcessingImpl::ProcessStream(AudioFrame* frame) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
capture_.capture_audio->CopyFrom(frame);
|
capture_.capture_audio->CopyFrom(frame);
|
||||||
|
if (capture_.capture_fullband_audio) {
|
||||||
|
capture_.capture_fullband_audio->CopyFrom(frame);
|
||||||
|
}
|
||||||
RETURN_ON_ERR(ProcessCaptureStreamLocked());
|
RETURN_ON_ERR(ProcessCaptureStreamLocked());
|
||||||
if (submodule_states_.CaptureMultiBandProcessingPresent() ||
|
if (submodule_states_.CaptureMultiBandProcessingPresent() ||
|
||||||
submodule_states_.CaptureFullBandProcessingActive()) {
|
submodule_states_.CaptureFullBandProcessingActive()) {
|
||||||
|
Reference in New Issue
Block a user