Introduce injectable NetEqController interface.
This interface is implemented by the DecisionLogic class, which now contains the DelayManager and DelayPeakDetector. Bug: webrtc:11005 Change-Id: I4fb69fa359e60831cf153e41f101d5b623749380 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/155176 Reviewed-by: Minyue Li <minyue@webrtc.org> Reviewed-by: Jakob Ivarsson <jakobi@webrtc.org> Commit-Queue: Ivo Creusen <ivoc@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29613}
This commit is contained in:
@ -382,16 +382,6 @@ void StatisticsCalculator::GetNetworkStatistics(int fs_hz,
|
||||
Reset();
|
||||
}
|
||||
|
||||
void StatisticsCalculator::PopulateDelayManagerStats(
|
||||
int ms_per_packet,
|
||||
const DelayManager& delay_manager,
|
||||
NetEqNetworkStatistics* stats) {
|
||||
RTC_DCHECK(stats);
|
||||
stats->preferred_buffer_size_ms =
|
||||
(delay_manager.TargetLevel() >> 8) * ms_per_packet;
|
||||
stats->jitter_peaks_found = delay_manager.PeakFound();
|
||||
}
|
||||
|
||||
NetEqLifetimeStatistics StatisticsCalculator::GetLifetimeStatistics() const {
|
||||
return lifetime_stats_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user