AEC dump Stream::level renamed

Making it clear that the field is used to store the applied input
volume and not the recommended input volume.

Bug: webrtc:7494, b/241923537
Change-Id: Ib91bc1a12348f63e3a4ba6e068ed02e40786a87b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/271342
Reviewed-by: Jesus de Vicente Pena <devicentepena@webrtc.org>
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38051}
This commit is contained in:
Alessio Bazzica
2022-09-05 16:05:24 +02:00
committed by WebRTC LUCI CQ
parent 767f504875
commit 3153b363cd
8 changed files with 16 additions and 13 deletions

View File

@ -2148,7 +2148,10 @@ void AudioProcessingImpl::RecordAudioProcessingState() {
AecDump::AudioProcessingState audio_proc_state;
audio_proc_state.delay = capture_nonlocked_.stream_delay_ms;
audio_proc_state.drift = 0;
audio_proc_state.level = recommended_stream_analog_level_locked();
// TODO(bugs.webrtc.org/7494): Refactor to clarify that `stream_analog_level`
// is in fact assigned to the applied volume and not to the recommended one.
audio_proc_state.applied_input_volume =
recommended_stream_analog_level_locked();
audio_proc_state.keypress = capture_.key_pressed;
aec_dump_->AddAudioProcessingState(audio_proc_state);
}