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

Issue 2964593002: Adding stats that can be used to compute output audio levels. (Closed)

Created:
3 years, 5 months ago by Zach Stein
Modified:
3 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, AleBzk, peah-webrtc, Andrew MacDonald, henrika_webrtc, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, mflodman, the sun
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding stats that can be used to compute output audio levels as described here https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-totalaudioenergy. BUG=webrtc:7982 Review-Url: https://codereview.webrtc.org/2964593002 Cr-Commit-Position: refs/heads/master@{#19027} Committed: https://chromium.googlesource.com/external/webrtc/+/e76bd3aa43821ff10f5cef5854836ea782b2464f

Patch Set 1 #

Patch Set 2 : Add new stats to the whitelist so they show up in the report. #

Patch Set 3 : Also report send stats. #

Total comments: 10

Patch Set 4 : Remove unnecessary TODOs and address style feedback. #

Total comments: 6

Patch Set 5 : Use input/output consistently in variable/member names. #

Patch Set 6 : comment updates #

Total comments: 5

Patch Set 7 : Remove superflous comment and fix macro formatting. #

Patch Set 8 : Record new stats in statscollector so they show up when getStats is called from Java and fix RTCSta… #

Total comments: 24

Patch Set 9 : Dynamically compute sample_duration in transmit_mixer, add w3c links, and use a named constant in c… #

Total comments: 4

Patch Set 10 : Use double in VoiceInfo classes and address some style feedback. #

Patch Set 11 : Add bug link to TODO. #

Patch Set 12 : Fix AudioReceiveStreamTest.GetStats #

Patch Set 13 : Add test coverage in AudioSendStreamTest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -22 lines) Patch
M webrtc/api/stats/rtcstats_objects.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/statstypes.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/statstypes.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -0 lines 0 comments Download
M webrtc/call/audio_receive_stream.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/call/audio_send_stream.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/pc/rtcstats_integrationtest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/pc/rtcstatscollector.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/pc/rtcstatscollector_unittest.cc View 1 2 3 4 5 6 7 6 chunks +12 lines, -0 lines 0 comments Download
M webrtc/pc/statscollector.cc View 1 2 3 4 5 6 7 3 chunks +13 lines, -0 lines 0 comments Download
M webrtc/stats/rtcstats_objects.cc View 1 2 3 4 5 6 3 chunks +28 lines, -22 lines 0 comments Download
M webrtc/test/mock_voe_channel_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M webrtc/voice_engine/transmit_mixer.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download
M webrtc/voice_engine/transmit_mixer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (17 generated)
Zach Stein
Found an integer truncation issue. Looking in to the 2 TODOs and trying to understand ...
3 years, 5 months ago (2017-06-29 21:55:35 UTC) #2
Zach Stein
Got the stats showing up in the report and roughed out an implementation for send ...
3 years, 5 months ago (2017-06-30 23:16:00 UTC) #4
the sun
Do you really need double precision?
3 years, 5 months ago (2017-07-03 08:16:27 UTC) #6
hlundin-webrtc
I'm not sure if double precision is strictly needed, but since this stat will accumulate ...
3 years, 5 months ago (2017-07-03 13:23:03 UTC) #7
Zach Stein
On 2017/07/03 13:23:03, hlundin-webrtc (OOOtoJul3) wrote: > I'm not sure if double precision is strictly ...
3 years, 5 months ago (2017-07-06 17:40:23 UTC) #8
Zach Stein
https://codereview.webrtc.org/2964593002/diff/40001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2964593002/diff/40001/webrtc/voice_engine/channel.cc#newcode700 webrtc/voice_engine/channel.cc:700: // TODO(zstein): Use sample_rate_hz_? On 2017/07/03 13:23:03, hlundin-webrtc (OOOtoJul3) ...
3 years, 5 months ago (2017-07-06 17:41:38 UTC) #9
Zach Stein
PTAL
3 years, 5 months ago (2017-07-06 17:46:13 UTC) #11
Taylor Brandstetter
lgtm for the code I own (with minor nits about comments/variable names). It would be ...
3 years, 5 months ago (2017-07-06 17:57:56 UTC) #12
Zach Stein
https://codereview.webrtc.org/2964593002/diff/60001/webrtc/audio/audio_send_stream.cc File webrtc/audio/audio_send_stream.cc (right): https://codereview.webrtc.org/2964593002/diff/60001/webrtc/audio/audio_send_stream.cc#newcode282 webrtc/audio/audio_send_stream.cc:282: // TODO(zstein): Consistent use of input/output in names. On ...
3 years, 5 months ago (2017-07-06 18:07:35 UTC) #13
hlundin-webrtc
lgtm https://codereview.webrtc.org/2964593002/diff/40001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2964593002/diff/40001/webrtc/voice_engine/channel.cc#newcode700 webrtc/voice_engine/channel.cc:700: // TODO(zstein): Use sample_rate_hz_? On 2017/07/06 17:41:37, Zach ...
3 years, 5 months ago (2017-07-07 06:48:44 UTC) #14
hbos
I didn't have time to fully review this today due to leaving early but it ...
3 years, 5 months ago (2017-07-07 12:52:25 UTC) #15
Taylor Brandstetter
https://codereview.webrtc.org/2964593002/diff/100001/webrtc/pc/rtcstats_integrationtest.cc File webrtc/pc/rtcstats_integrationtest.cc (right): https://codereview.webrtc.org/2964593002/diff/100001/webrtc/pc/rtcstats_integrationtest.cc#newcode497 webrtc/pc/rtcstats_integrationtest.cc:497: // be used to compute audio levels between getStats ...
3 years, 5 months ago (2017-07-07 16:15:16 UTC) #16
Zach Stein
https://codereview.webrtc.org/2964593002/diff/100001/webrtc/pc/rtcstats_integrationtest.cc File webrtc/pc/rtcstats_integrationtest.cc (right): https://codereview.webrtc.org/2964593002/diff/100001/webrtc/pc/rtcstats_integrationtest.cc#newcode497 webrtc/pc/rtcstats_integrationtest.cc:497: // be used to compute audio levels between getStats ...
3 years, 5 months ago (2017-07-07 21:27:37 UTC) #18
Zach Stein
Turns out a little more work was needed to get the stats showing up in ...
3 years, 5 months ago (2017-07-08 00:05:40 UTC) #19
hbos
lgtm % nits https://codereview.webrtc.org/2964593002/diff/140001/webrtc/call/audio_receive_stream.h File webrtc/call/audio_receive_stream.h (right): https://codereview.webrtc.org/2964593002/diff/140001/webrtc/call/audio_receive_stream.h#newcode52 webrtc/call/audio_receive_stream.h:52: // See description of "totalAudioEnergy" in ...
3 years, 5 months ago (2017-07-10 09:58:25 UTC) #20
Zach Stein
https://codereview.webrtc.org/2964593002/diff/140001/webrtc/call/audio_receive_stream.h File webrtc/call/audio_receive_stream.h (right): https://codereview.webrtc.org/2964593002/diff/140001/webrtc/call/audio_receive_stream.h#newcode52 webrtc/call/audio_receive_stream.h:52: // See description of "totalAudioEnergy" in the WebRTC stats ...
3 years, 5 months ago (2017-07-10 18:35:21 UTC) #21
Zach Stein
Still need reviewers for audio, voice_engine, and call. PTAL
3 years, 5 months ago (2017-07-10 19:19:07 UTC) #23
pbos-webrtc
On 2017/07/10 19:19:07, Zach Stein wrote: > Still need reviewers for audio, voice_engine, and call. ...
3 years, 5 months ago (2017-07-10 22:13:17 UTC) #24
hbos
https://codereview.webrtc.org/2964593002/diff/140001/webrtc/media/base/mediachannel.h File webrtc/media/base/mediachannel.h (right): https://codereview.webrtc.org/2964593002/diff/140001/webrtc/media/base/mediachannel.h#newcode633 webrtc/media/base/mediachannel.h:633: float total_input_duration; On 2017/07/10 18:35:20, Zach Stein wrote: > ...
3 years, 5 months ago (2017-07-11 08:01:01 UTC) #25
ossu
lgtm % nits https://codereview.webrtc.org/2964593002/diff/160001/webrtc/voice_engine/channel.h File webrtc/voice_engine/channel.h (right): https://codereview.webrtc.org/2964593002/diff/160001/webrtc/voice_engine/channel.h#newcode476 webrtc/voice_engine/channel.h:476: double _totalOutputEnergy = 0.0; I think ...
3 years, 5 months ago (2017-07-11 10:38:38 UTC) #26
Zach Stein
Thanks for all the feedback. Just looking for a reviewer for the changes under webrtc/voice_engine ...
3 years, 5 months ago (2017-07-11 19:50:30 UTC) #28
niklas.enbom
The voice_engine code seems to be reviewed by a good set of reviewers already, so ...
3 years, 5 months ago (2017-07-12 23:32:07 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2964593002/200001
3 years, 5 months ago (2017-07-13 00:43:25 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/19226)
3 years, 5 months ago (2017-07-13 00:49:35 UTC) #35
Henrik Grunell WebRTC
On 2017/07/11 19:50:30, Zach Stein wrote: > Thanks for all the feedback. > Just looking ...
3 years, 5 months ago (2017-07-13 08:28:23 UTC) #37
Zach Stein
On 2017/07/13 08:28:23, Henrik Grunell WebRTC wrote: > On 2017/07/11 19:50:30, Zach Stein wrote: > ...
3 years, 5 months ago (2017-07-13 18:04:31 UTC) #39
Henrik Grunell WebRTC
On 2017/07/13 18:04:31, Zach Stein wrote: > On 2017/07/13 08:28:23, Henrik Grunell WebRTC wrote: > ...
3 years, 5 months ago (2017-07-14 10:54:14 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2964593002/240001
3 years, 5 months ago (2017-07-14 18:45:56 UTC) #43
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 19:18:01 UTC) #46
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/external/webrtc/+/e76bd3aa43821ff10f5cef585...

Powered by Google App Engine
This is Rietveld 408576698