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

Issue 2230823004: Added a level indicator to new mixer. (Closed)

Created:
4 years, 4 months ago by aleloi
Modified:
4 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@mixer_gn_fixes
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added a level indicator to new mixer. Added a level indicator to the new mixer. The level indicator is webrtc::voe::AudioLevel. It computes the current audio level, which is used all the way up to peerconnection. This is part of the project to rewrite the old conference mixer and output mixer. NOTRY=True Committed: https://crrev.com/616df1e95c5ac70d288d83e694eefc8f78da6245 Cr-Commit-Position: refs/heads/master@{#13878}

Patch Set 1 #

Patch Set 2 : Added tests for volume. #

Patch Set 3 : Added call to AudioLimiter. #

Total comments: 2

Patch Set 4 : Updated comments in volume test. #

Total comments: 28

Patch Set 5 : Fixed audio mixer volume tests, inited SPL. #

Total comments: 1

Patch Set 6 : Updated comments, renamed output level function and tests, formatted level indicator. #

Patch Set 7 : Fake participant returns frame copy. #

Total comments: 7

Patch Set 8 : Renamed audio level functions. #

Patch Set 9 : Removed format changes to level_indicator.cc. #

Total comments: 16

Patch Set 10 : Minor changes in response to reviewer comments. #

Total comments: 8

Patch Set 11 : Made local variable const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -11 lines) Patch
M webrtc/modules/audio_mixer/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_mixer/new_audio_conference_mixer.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -0 lines 0 comments Download
M webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -3 lines 0 comments Download
M webrtc/modules/audio_mixer/test/audio_mixer_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +72 lines, -8 lines 0 comments Download
M webrtc/voice_engine/level_indicator.cc View 1 2 3 4 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 48 (16 generated)
aleloi
Could you take a look at this? I added the capacity to measure audio volume ...
4 years, 4 months ago (2016-08-11 09:09:28 UTC) #4
aleloi
mflodman@, can you also take a look at this? In particular voice_engine/level_indicator.cc, which I change ...
4 years, 4 months ago (2016-08-11 09:56:04 UTC) #9
minyue-webrtc
thanks and see my comments https://codereview.webrtc.org/2230823004/diff/60001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h File webrtc/modules/audio_mixer/new_audio_conference_mixer.h (right): https://codereview.webrtc.org/2230823004/diff/60001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h#newcode62 webrtc/modules/audio_mixer/new_audio_conference_mixer.h:62: // Output level functions ...
4 years, 4 months ago (2016-08-11 10:27:33 UTC) #10
minyue-webrtc
BTW, the description does not say who will be using the new APIs
4 years, 4 months ago (2016-08-11 10:28:48 UTC) #11
aleloi
I addressed your comments, minyue@! The linter complained on level_indicator, so I did a git ...
4 years, 4 months ago (2016-08-11 12:15:20 UTC) #12
aleloi
Re volume with two participants https://codereview.webrtc.org/2230823004/diff/60001/webrtc/modules/audio_mixer/test/audio_mixer_unittest.cc File webrtc/modules/audio_mixer/test/audio_mixer_unittest.cc (right): https://codereview.webrtc.org/2230823004/diff/60001/webrtc/modules/audio_mixer/test/audio_mixer_unittest.cc#newcode400 webrtc/modules/audio_mixer/test/audio_mixer_unittest.cc:400: TEST(AudioMixer, FullVolume) { On ...
4 years, 4 months ago (2016-08-11 12:25:22 UTC) #15
aleloi
On 2016/08/11 12:25:22, aleloi wrote: > Re volume with two participants > > https://codereview.webrtc.org/2230823004/diff/60001/webrtc/modules/audio_mixer/test/audio_mixer_unittest.cc > ...
4 years, 4 months ago (2016-08-11 12:44:30 UTC) #16
aleloi
After writing the mixer update, I tried to figure out why it wasn't detected earlier. ...
4 years, 4 months ago (2016-08-11 14:19:56 UTC) #17
minyue-webrtc
good job, please take a look at my small comments https://codereview.webrtc.org/2230823004/diff/120001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h File webrtc/modules/audio_mixer/new_audio_conference_mixer.h (right): https://codereview.webrtc.org/2230823004/diff/120001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h#newcode64 ...
4 years, 4 months ago (2016-08-15 06:26:15 UTC) #18
minyue-webrtc
and would you cc me the CL that fixes to bug. https://codereview.webrtc.org/2230823004/diff/60001/webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc File webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc (left): ...
4 years, 4 months ago (2016-08-15 06:30:09 UTC) #19
aleloi
Updated according to comments. https://codereview.webrtc.org/2230823004/diff/120001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h File webrtc/modules/audio_mixer/new_audio_conference_mixer.h (right): https://codereview.webrtc.org/2230823004/diff/120001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h#newcode64 webrtc/modules/audio_mixer/new_audio_conference_mixer.h:64: virtual uint32_t GetAudioOutputLevel() = 0; ...
4 years, 4 months ago (2016-08-15 11:52:13 UTC) #20
minyue-webrtc
https://codereview.webrtc.org/2230823004/diff/120001/webrtc/voice_engine/level_indicator.cc File webrtc/voice_engine/level_indicator.cc (right): https://codereview.webrtc.org/2230823004/diff/120001/webrtc/voice_engine/level_indicator.cc#newcode31 webrtc/voice_engine/level_indicator.cc:31: WebRtcSpl_Init(); On 2016/08/15 11:52:13, aleloi wrote: > On 2016/08/15 ...
4 years, 4 months ago (2016-08-15 15:58:37 UTC) #21
aleloi
On 2016/08/15 15:58:37, minyue-webrtc wrote: > https://codereview.webrtc.org/2230823004/diff/120001/webrtc/voice_engine/level_indicator.cc > File webrtc/voice_engine/level_indicator.cc (right): > > https://codereview.webrtc.org/2230823004/diff/120001/webrtc/voice_engine/level_indicator.cc#newcode31 > ...
4 years, 4 months ago (2016-08-16 08:57:20 UTC) #22
minyue-webrtc
lgtm
4 years, 4 months ago (2016-08-18 07:36:58 UTC) #23
mflodman
I don't really have the knowledge to review sp lib functions and how it's used. ...
4 years, 4 months ago (2016-08-18 09:34:13 UTC) #25
aleloi
https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc File webrtc/voice_engine/level_indicator.cc (right): https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc#newcode31 webrtc/voice_engine/level_indicator.cc:31: WebRtcSpl_Init(); On 2016/08/18 09:34:13, mflodman wrote: > This has ...
4 years, 4 months ago (2016-08-18 09:40:33 UTC) #26
mflodman
https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc File webrtc/voice_engine/level_indicator.cc (right): https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc#newcode31 webrtc/voice_engine/level_indicator.cc:31: WebRtcSpl_Init(); On 2016/08/18 09:40:33, aleloi wrote: > On 2016/08/18 ...
4 years, 4 months ago (2016-08-18 09:45:28 UTC) #27
minyue-webrtc
https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc File webrtc/voice_engine/level_indicator.cc (right): https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc#newcode31 webrtc/voice_engine/level_indicator.cc:31: WebRtcSpl_Init(); On 2016/08/18 09:45:28, mflodman wrote: > On 2016/08/18 ...
4 years, 4 months ago (2016-08-18 09:53:09 UTC) #28
aleloi
On 2016/08/18 09:53:09, minyue-webrtc wrote: > https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc > File webrtc/voice_engine/level_indicator.cc (right): > > https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc#newcode31 > ...
4 years, 4 months ago (2016-08-18 10:45:25 UTC) #29
aleloi
On 2016/08/18 10:45:25, aleloi wrote: > On 2016/08/18 09:53:09, minyue-webrtc wrote: > > > https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc ...
4 years, 4 months ago (2016-08-19 11:10:06 UTC) #30
kwiberg-webrtc
https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc File webrtc/voice_engine/level_indicator.cc (right): https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc#newcode31 webrtc/voice_engine/level_indicator.cc:31: WebRtcSpl_Init(); On 2016/08/18 09:53:08, minyue-webrtc wrote: > On 2016/08/18 ...
4 years, 4 months ago (2016-08-19 11:24:44 UTC) #31
minyue-webrtc
On 2016/08/19 11:24:44, kwiberg-webrtc wrote: > https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc > File webrtc/voice_engine/level_indicator.cc (right): > > https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc#newcode31 > ...
4 years, 4 months ago (2016-08-19 11:34:38 UTC) #32
aleloi
On 2016/08/19 11:34:38, minyue-webrtc wrote: > On 2016/08/19 11:24:44, kwiberg-webrtc wrote: > > > https://codereview.webrtc.org/2230823004/diff/160001/webrtc/voice_engine/level_indicator.cc ...
4 years, 4 months ago (2016-08-23 12:16:26 UTC) #33
mflodman
On 2016/08/23 12:16:26, aleloi wrote: > On 2016/08/19 11:34:38, minyue-webrtc wrote: > > On 2016/08/19 ...
4 years, 4 months ago (2016-08-23 12:17:50 UTC) #34
mflodman
Removing myself for real.
4 years, 4 months ago (2016-08-23 12:18:11 UTC) #36
kwiberg-webrtc
Sorry, I'd missed that I was supposed to be reviewing this... https://codereview.webrtc.org/2230823004/diff/160001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h File webrtc/modules/audio_mixer/new_audio_conference_mixer.h (right): ...
4 years, 4 months ago (2016-08-23 12:58:26 UTC) #37
aleloi
Another pset. Ptal :) https://codereview.webrtc.org/2230823004/diff/160001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h File webrtc/modules/audio_mixer/new_audio_conference_mixer.h (right): https://codereview.webrtc.org/2230823004/diff/160001/webrtc/modules/audio_mixer/new_audio_conference_mixer.h#newcode67 webrtc/modules/audio_mixer/new_audio_conference_mixer.h:67: virtual uint32_t GetOutputAudioLevelFullRange() = 0; ...
4 years, 4 months ago (2016-08-24 07:19:47 UTC) #38
kwiberg-webrtc
lgtm, with a handful of optional nits https://codereview.webrtc.org/2230823004/diff/180001/webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc File webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc (right): https://codereview.webrtc.org/2230823004/diff/180001/webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc#newcode598 webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc:598: int level ...
4 years, 4 months ago (2016-08-24 08:04:39 UTC) #39
aleloi
Thanks for the comments, everyone! https://codereview.webrtc.org/2230823004/diff/180001/webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc File webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc (right): https://codereview.webrtc.org/2230823004/diff/180001/webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc#newcode598 webrtc/modules/audio_mixer/new_audio_conference_mixer_impl.cc:598: int level = audio_level_.Level(); ...
4 years, 4 months ago (2016-08-24 08:15:16 UTC) #41
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/2230823004/200001
4 years, 4 months ago (2016-08-24 08:15:35 UTC) #44
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-24 08:17:15 UTC) #46
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 08:17:27 UTC) #48
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/616df1e95c5ac70d288d83e694eefc8f78da6245
Cr-Commit-Position: refs/heads/master@{#13878}

Powered by Google App Engine
This is Rietveld 408576698