Chromium Code Reviews| Index: webrtc/voice_engine/channel.h |
| diff --git a/webrtc/voice_engine/channel.h b/webrtc/voice_engine/channel.h |
| index 101de4060b3ce33d1c524f7d973527753e02e62c..e54881921dfba40baf42d02412e572ab534cc3aa 100644 |
| --- a/webrtc/voice_engine/channel.h |
| +++ b/webrtc/voice_engine/channel.h |
| @@ -260,6 +260,9 @@ class Channel |
| void SetChannelOutputVolumeScaling(float scaling); |
| int GetSpeechOutputLevel() const; |
| int GetSpeechOutputLevelFullRange() const; |
| + // See description of "totalAudioEnergy" in the WebRTC stats spec. |
| + double GetTotalOutputEnergy() const; |
| + double GetTotalOutputDuration() const; |
| // Stats. |
| int GetNetworkStatistics(NetworkStatistics& stats); |
| @@ -470,6 +473,8 @@ class Channel |
| acm2::RentACodec rent_a_codec_; |
| std::unique_ptr<AudioSinkInterface> audio_sink_; |
| AudioLevel _outputAudioLevel; |
| + double _totalOutputEnergy = 0.0; |
|
ossu
2017/07/11 10:38:37
I think these should be totalOutputEnergy_ etc. -
Zach Stein
2017/07/11 19:50:30
Done.
|
| + double _totalOutputDuration = 0.0; |
| bool _externalTransport; |
| // Downsamples to the codec rate if necessary. |
| PushResampler<int16_t> input_resampler_; |