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

Unified Diff: webrtc/media/base/mediachannel.h

Issue 2964593002: Adding stats that can be used to compute output audio levels. (Closed)
Patch Set: Add test coverage in AudioSendStreamTest. 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
« no previous file with comments | « webrtc/call/audio_send_stream.h ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/mediachannel.h
diff --git a/webrtc/media/base/mediachannel.h b/webrtc/media/base/mediachannel.h
index 816dfd18fc987a3995396e4afa31839f69a3eac8..0f6031f3861293ec5fa5d2302207adb37346af15 100644
--- a/webrtc/media/base/mediachannel.h
+++ b/webrtc/media/base/mediachannel.h
@@ -614,6 +614,8 @@ struct VoiceSenderInfo : public MediaSenderInfo {
: ext_seqnum(0),
jitter_ms(0),
audio_level(0),
+ total_input_energy(0.0),
+ total_input_duration(0.0),
aec_quality_min(0.0),
echo_delay_median_ms(0),
echo_delay_std_ms(0),
@@ -626,6 +628,10 @@ struct VoiceSenderInfo : public MediaSenderInfo {
int ext_seqnum;
int jitter_ms;
int audio_level;
+ // See description of "totalAudioEnergy" in the WebRTC stats spec:
+ // https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-totalaudioenergy
+ double total_input_energy;
+ double total_input_duration;
float aec_quality_min;
int echo_delay_median_ms;
int echo_delay_std_ms;
@@ -644,6 +650,8 @@ struct VoiceReceiverInfo : public MediaReceiverInfo {
jitter_buffer_preferred_ms(0),
delay_estimate_ms(0),
audio_level(0),
+ total_output_energy(0.0),
+ total_output_duration(0.0),
expand_rate(0),
speech_expand_rate(0),
secondary_decoded_rate(0),
@@ -664,6 +672,10 @@ struct VoiceReceiverInfo : public MediaReceiverInfo {
int jitter_buffer_preferred_ms;
int delay_estimate_ms;
int audio_level;
+ // See description of "totalAudioEnergy" in the WebRTC stats spec:
+ // https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-totalaudioenergy
+ double total_output_energy;
+ double total_output_duration;
// fraction of synthesized audio inserted through expansion.
float expand_rate;
// fraction of synthesized speech inserted through expansion.
« no previous file with comments | « webrtc/call/audio_send_stream.h ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698