Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: webrtc/voice_engine/channel_proxy.cc

Issue 2964593002: Adding stats that can be used to compute output audio levels. (Closed)
Patch Set: Record new stats in statscollector so they show up when getStats is called from Java and fix RTCSta… Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/channel_proxy.cc
diff --git a/webrtc/voice_engine/channel_proxy.cc b/webrtc/voice_engine/channel_proxy.cc
index 4a0b3cc4b1e7dadc076220e3cdb4b437d85aeeef..a2ab0523402bb9c67e434f72b27abf2c1481259a 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -154,6 +154,16 @@ int ChannelProxy::GetSpeechOutputLevelFullRange() const {
return channel()->GetSpeechOutputLevelFullRange();
}
+double ChannelProxy::GetTotalOutputEnergy() const {
+ RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
+ return channel()->GetTotalOutputEnergy();
+}
+
+double ChannelProxy::GetTotalOutputDuration() const {
+ RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
+ return channel()->GetTotalOutputDuration();
+}
+
uint32_t ChannelProxy::GetDelayEstimate() const {
RTC_DCHECK(worker_thread_checker_.CalledOnValidThread() ||
module_process_thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698