Chromium Code Reviews| Index: webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
| diff --git a/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc b/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
| index 5756e2af685ee1f8c5855808828abc3925160528..a91ab85891491058b4f9c6db318c0e1152d4edff 100644 |
| --- a/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
| +++ b/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
| @@ -773,4 +773,20 @@ void AudioEncoderOpus::MaybeUpdateUplinkBandwidth() { |
| } |
| } |
| +AudioEncoder::AudioEncoderStats AudioEncoderOpus::GetStats() const { |
| + if (audio_network_adaptor_) { |
| + auto ana_stats = audio_network_adaptor_->GetStats(); |
| + auto stats = AudioEncoderStats(); |
|
ossu
2017/08/31 13:13:10
No. :)
ivoc
2017/08/31 14:57:50
Oops. :)
|
| + stats.ana_bitrate_action_counter = ana_stats.ana_bitrate_action_counter; |
| + stats.ana_channel_action_counter = ana_stats.ana_channel_action_counter; |
| + stats.ana_dtx_action_counter = ana_stats.ana_dtx_action_counter; |
| + stats.ana_fec_action_counter = ana_stats.ana_fec_action_counter; |
| + stats.ana_frame_length_action_counter = |
| + ana_stats.ana_frame_length_action_counter; |
| + return stats; |
| + } else { |
| + return AudioEncoderStats(); |
| + } |
| +} |
| + |
| } // namespace webrtc |