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

Issue 15563004: Improved AGC update scheme for the audio backend in Chrome (Closed)

Created:
7 years, 7 months ago by henrika (OOO until Aug 14)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org, no longer working on chromium, Chris Rogers
Visibility:
Public.

Description

Improved AGC update scheme for the audio backend in Chrome. This CL serves two purposes: 1) Improve the existing "mic-volume-checking"-scheme by ensuring that we no longer calls native audio functions from the core capture thread. 2) Prepare for adding AGC to the live-audio backend. TBR=tommi@chromium.org BUG=none TEST=WebRTC loopback tests in Chrome where I monitor the microphone volume while speaking into the mic. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202538

Patch Set 1 #

Patch Set 2 : tmp #

Patch Set 3 : cleanup #

Patch Set 4 : Improved AGC implementation #

Patch Set 5 : nits #

Total comments: 27

Patch Set 6 : tommi@ review #

Total comments: 10

Patch Set 7 : More changes based on feedback from tommi@ #

Total comments: 1

Patch Set 8 : Added Start/Stop APIs for the AGC part #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -168 lines) Patch
M content/renderer/media/webrtc_audio_device_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A media/audio/agc_audio_stream.h View 1 2 3 4 5 6 7 1 chunk +205 lines, -0 lines 0 comments Download
D media/audio/audio_input_stream_impl.h View 1 1 chunk +0 lines, -71 lines 0 comments Download
D media/audio/audio_input_stream_impl.cc View 1 1 chunk +0 lines, -71 lines 0 comments Download
M media/audio/cras/cras_input.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/cras/cras_input.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -1 line 0 comments Download
M media/audio/linux/alsa_input.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/linux/alsa_input.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -4 lines 0 comments Download
M media/audio/pulse/pulse_input.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/pulse/pulse_input.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -4 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
henrika (OOO until Aug 14)
Tommi, given our off-line discussions, could you take a look at this one? Note that ...
7 years, 7 months ago (2013-05-24 13:52:33 UTC) #1
henrika (OOO until Aug 14)
I will update more platforms when you are OK with the main approach. Once landed ...
7 years, 7 months ago (2013-05-24 13:55:03 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/15563004/diff/11001/media/audio/agc_audio_stream.h File media/audio/agc_audio_stream.h (right): https://codereview.chromium.org/15563004/diff/11001/media/audio/agc_audio_stream.h#newcode21 media/audio/agc_audio_stream.h:21: // implementation should derive from this class. maybe add ...
7 years, 7 months ago (2013-05-24 18:21:11 UTC) #3
henrika (OOO until Aug 14)
Thanks Tommi, making changes as proposed. My plan was to start with refactoring input side ...
7 years, 7 months ago (2013-05-27 12:17:43 UTC) #4
henrika (OOO until Aug 14)
tommi, PTAL
7 years, 7 months ago (2013-05-27 12:23:04 UTC) #5
tommi (sloooow) - chröme
https://codereview.chromium.org/15563004/diff/19001/media/audio/agc_audio_stream.h File media/audio/agc_audio_stream.h (right): https://codereview.chromium.org/15563004/diff/19001/media/audio/agc_audio_stream.h#newcode17 media/audio/agc_audio_stream.h:17: // TODO(henrika): add info about threading Will you do ...
7 years, 7 months ago (2013-05-27 13:54:36 UTC) #6
henrika (OOO until Aug 14)
Fixed compiler issues on all platforms (Windows is a bit special) and improved class description. ...
7 years, 7 months ago (2013-05-27 15:37:36 UTC) #7
henrika (OOO until Aug 14)
tommi, PTAL thanks. https://codereview.chromium.org/15563004/diff/31001/media/audio/agc_audio_stream.h File media/audio/agc_audio_stream.h (right): https://codereview.chromium.org/15563004/diff/31001/media/audio/agc_audio_stream.h#newcode122 media/audio/agc_audio_stream.h:122: max_volume_ = static_cast<AudioInterface*>(this)->GetMaxVolume(); Should now work ...
7 years, 7 months ago (2013-05-27 15:39:07 UTC) #8
henrika (OOO until Aug 14)
Tommi, FYI, I am also thinking about adding one additional improvement and would like your ...
7 years, 7 months ago (2013-05-27 15:46:14 UTC) #9
tommi (sloooow) - chröme
lgtm. On 2013/05/27 15:46:14, henrika wrote: > Tommi, FYI, I am also thinking about adding ...
7 years, 6 months ago (2013-05-28 07:32:38 UTC) #10
henrika (OOO until Aug 14)
Dale, seems like I need you OK for media.gyp. Hope it is OK if I ...
7 years, 6 months ago (2013-05-28 09:23:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/henrika@chromium.org/15563004/46001
7 years, 6 months ago (2013-05-28 09:31:05 UTC) #12
henrika (OOO until Aug 14)
Chris, FYI. Started out refactoring the input part to prepare for adding AGC for live-audio ...
7 years, 6 months ago (2013-05-28 09:38:41 UTC) #13
tommi (sloooow) - chröme
Looks like you added code after the review and then committed. That's generally not the ...
7 years, 6 months ago (2013-05-28 11:01:13 UTC) #14
henrika (OOO until Aug 14)
Sorry, bad style from my side. Mainly added comments and the described (trivial) idea. Will ...
7 years, 6 months ago (2013-05-28 11:08:59 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=118971
7 years, 6 months ago (2013-05-28 11:39:45 UTC) #16
henrika (OOO until Aug 14)
Committed patchset #8 manually as r202538 (presubmit successful).
7 years, 6 months ago (2013-05-28 11:53:11 UTC) #17
DaleCurtis
7 years, 6 months ago (2013-05-28 16:09:52 UTC) #18
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698