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

Unified Diff: webrtc/stats/rtcstats_objects.cc

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/pc/statscollector.cc ('k') | webrtc/test/mock_voe_channel_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/stats/rtcstats_objects.cc
diff --git a/webrtc/stats/rtcstats_objects.cc b/webrtc/stats/rtcstats_objects.cc
index 5397ef782cca502ff4508e2118b38a251c0b4af3..bd8e9cd30c65b5ec072224cdd8af808d00a9b5cb 100644
--- a/webrtc/stats/rtcstats_objects.cc
+++ b/webrtc/stats/rtcstats_objects.cc
@@ -349,32 +349,35 @@ RTCMediaStreamStats::~RTCMediaStreamStats() {
}
WEBRTC_RTCSTATS_IMPL(RTCMediaStreamTrackStats, RTCStats, "track",
- &track_identifier,
- &remote_source,
- &ended,
- &detached,
- &kind,
- &frame_width,
- &frame_height,
- &frames_per_second,
- &frames_sent,
- &frames_received,
- &frames_decoded,
- &frames_dropped,
- &frames_corrupted,
- &partial_frames_lost,
- &full_frames_lost,
- &audio_level,
- &echo_return_loss,
- &echo_return_loss_enhancement);
+ &track_identifier,
+ &remote_source,
+ &ended,
+ &detached,
+ &kind,
+ &frame_width,
+ &frame_height,
+ &frames_per_second,
+ &frames_sent,
+ &frames_received,
+ &frames_decoded,
+ &frames_dropped,
+ &frames_corrupted,
+ &partial_frames_lost,
+ &full_frames_lost,
+ &audio_level,
+ &total_audio_energy,
+ &total_samples_duration,
+ &echo_return_loss,
+ &echo_return_loss_enhancement);
RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
const std::string& id, int64_t timestamp_us, const char* kind)
: RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) {
}
-RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
- std::string&& id, int64_t timestamp_us, const char* kind)
+RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id,
+ int64_t timestamp_us,
+ const char* kind)
: RTCStats(std::move(id), timestamp_us),
track_identifier("trackIdentifier"),
remote_source("remoteSource"),
@@ -392,6 +395,8 @@ RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
partial_frames_lost("partialFramesLost"),
full_frames_lost("fullFramesLost"),
audio_level("audioLevel"),
+ total_audio_energy("totalAudioEnergy"),
+ total_samples_duration("totalSamplesDuration"),
echo_return_loss("echoReturnLoss"),
echo_return_loss_enhancement("echoReturnLossEnhancement") {
RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio ||
@@ -417,9 +422,10 @@ RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
partial_frames_lost(other.partial_frames_lost),
full_frames_lost(other.full_frames_lost),
audio_level(other.audio_level),
+ total_audio_energy(other.total_audio_energy),
+ total_samples_duration(other.total_samples_duration),
echo_return_loss(other.echo_return_loss),
- echo_return_loss_enhancement(other.echo_return_loss_enhancement) {
-}
+ echo_return_loss_enhancement(other.echo_return_loss_enhancement) {}
RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() {
}
« no previous file with comments | « webrtc/pc/statscollector.cc ('k') | webrtc/test/mock_voe_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698