Add new ANA stats to the old GetStats() to count the number of actions taken by each controller.
This CL only wires up the new stats but does not set the values yet. This will be added in a follow-up CL. BUG=webrtc:8127 Review-Url: https://codereview.webrtc.org/3011623002 Cr-Commit-Position: refs/heads/master@{#19751}
This commit is contained in:
@ -204,6 +204,8 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
|
||||
|
||||
void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const override;
|
||||
|
||||
ANAStats GetANAStats() const override;
|
||||
|
||||
private:
|
||||
struct InputData {
|
||||
uint32_t input_timestamp;
|
||||
@ -1273,6 +1275,14 @@ void AudioCodingModuleImpl::GetDecodingCallStatistics(
|
||||
receiver_.GetDecodingCallStatistics(call_stats);
|
||||
}
|
||||
|
||||
ANAStats AudioCodingModuleImpl::GetANAStats() const {
|
||||
rtc::CritScope lock(&acm_crit_sect_);
|
||||
if (encoder_stack_)
|
||||
return encoder_stack_->GetANAStats();
|
||||
// If no encoder is set, return default stats.
|
||||
return ANAStats();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
AudioCodingModule::Config::Config()
|
||||
|
||||
Reference in New Issue
Block a user