APM: refactor emulated input volume for capture level adjustment
Switching to an AGC implementation agnostic solution for the input volume emulation functionality offered by the `capture_levels_adjuster` sub-module. This CL also fixes a (silent) bug due to which, when the input volume is emulated via the capture adjuster sub-module, AGC2 reads an incorrect value for the applied input volume. Tested: audioproc_f with `--analog_mic_gain_emulation 1` used to verify bit-exactness for one Wav file and one AEC dump for which the input volume varies. Bug: webrtc:7494, b/241923537 Change-Id: Ide3085f9a5dfd85888ad812ebd56faa175fb2ba7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/273902 Reviewed-by: Per Åhgren <peah@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38053}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
a5aaedb327
commit
0c0c602653
@ -160,6 +160,8 @@ class AudioProcessingImpl : public AudioProcessing {
|
||||
FRIEND_TEST_ALL_PREFIXES(ApmWithSubmodulesExcludedTest,
|
||||
BitexactWithDisabledModules);
|
||||
|
||||
void set_stream_analog_level_locked(int level)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(mutex_capture_);
|
||||
int recommended_stream_analog_level_locked() const
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(mutex_capture_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user