Added metric for the delay in AEC3.
Bug: webrtc:8569 Change-Id: I659049a411654bd3a252ab29008fac467f903efd Reviewed-on: https://webrtc-review.googlesource.com/25600 Commit-Queue: Per Åhgren <peah@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20892}
This commit is contained in:
@ -183,6 +183,8 @@ void BlockProcessorImpl::UpdateEchoLeakageStatus(bool leakage_detected) {
|
||||
|
||||
void BlockProcessorImpl::GetMetrics(EchoControl::Metrics* metrics) const {
|
||||
echo_remover_->GetMetrics(metrics);
|
||||
const int block_size_ms = sample_rate_hz_ == 8000 ? 8 : 4;
|
||||
metrics->delay_ms = static_cast<int>(render_buffer_->Delay()) * block_size_ms;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user