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

Issue 645923002: Add support for audio input mute detection on all platforms (Closed)

Created:
6 years, 2 months ago by henrika (OOO until Aug 14)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add support for audio input mute detection on all platforms. TBR=rkc@chromium.org BUG=422275 TEST=Manual tests using DVLOGs to confirm valid microphone mute states. Committed: https://crrev.com/c569d98674f56fccf39c53f7ec7a63127755390f Cr-Commit-Position: refs/heads/master@{#299891}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added support for Linux Pulse #

Patch Set 3 : nit #

Patch Set 4 : Added default implementation for cras #

Total comments: 2

Patch Set 5 : xians@ #

Total comments: 1

Patch Set 6 : git cl format #

Patch Set 7 : Added support for Mac OSX #

Patch Set 8 : Added usage of new IsMuted() API #

Patch Set 9 : Fixed Android #

Patch Set 10 : Now Android should build #

Patch Set 11 : Fix for Windows Wave #

Patch Set 12 : Fixed audio_recorder_unittest #

Total comments: 24

Patch Set 13 : Feedback from Tommi #

Total comments: 2

Patch Set 14 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -33 lines) Patch
M components/copresence/mediums/audio/audio_recorder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/capture/web_contents_audio_input_stream.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/capture/web_contents_audio_input_stream.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/alsa/alsa_input.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/alsa/alsa_input.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/android/audio_record_input.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/android/audio_record_input.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M media/audio/android/opensles_input.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/android/opensles_input.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -15 lines 0 comments Download
M media/audio/audio_io.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/cras/cras_input.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/cras/cras_input.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/fake_audio_input_stream.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/fake_audio_input_stream.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M media/audio/mac/audio_input_mac.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/mac/audio_input_mac.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +23 lines, -0 lines 0 comments Download
M media/audio/pulse/pulse_input.h View 1 2 3 4 5 5 chunks +13 lines, -5 lines 0 comments Download
M media/audio/pulse/pulse_input.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +41 lines, -12 lines 0 comments Download
M media/audio/virtual_audio_input_stream.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/virtual_audio_input_stream.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 2 chunks +15 lines, -1 line 0 comments Download
M media/audio/win/wavein_input_win.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/win/wavein_input_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (6 generated)
henrika (OOO until Aug 14)
Added new API and implementation for Windows.
6 years, 2 months ago (2014-10-10 13:47:15 UTC) #2
henrika (OOO until Aug 14)
FYI, will add Mac and Linux next.
6 years, 2 months ago (2014-10-10 13:49:43 UTC) #3
tommi (sloooow) - chröme
can you ping me when the cl is ready to be submitted? https://codereview.chromium.org/645923002/diff/1/media/audio/audio_io.h File media/audio/audio_io.h ...
6 years, 2 months ago (2014-10-10 15:54:36 UTC) #4
henrika (OOO until Aug 14)
Comments only. Will add support for Linux before uploading next. https://codereview.chromium.org/645923002/diff/1/media/audio/audio_io.h File media/audio/audio_io.h (right): https://codereview.chromium.org/645923002/diff/1/media/audio/audio_io.h#newcode169 ...
6 years, 2 months ago (2014-10-13 12:27:17 UTC) #5
henrika (OOO until Aug 14)
+xians for Linux PulseAudio implementation.
6 years, 2 months ago (2014-10-14 11:13:25 UTC) #7
henrika (OOO until Aug 14)
+dgreid for trivial cras_input implementation
6 years, 2 months ago (2014-10-14 11:22:02 UTC) #9
no longer working on chromium
lgtm iif you address the comment. https://codereview.chromium.org/645923002/diff/160001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/645923002/diff/160001/media/audio/pulse/pulse_input.cc#newcode205 media/audio/pulse/pulse_input.cc:205: AutoPulseLock auto_lock(pa_mainloop_); please ...
6 years, 2 months ago (2014-10-14 11:45:42 UTC) #10
dgreid
cras_input lgtm. ChromeOS doesn't mute the input.
6 years, 2 months ago (2014-10-14 12:17:26 UTC) #11
henrika (OOO until Aug 14)
https://codereview.chromium.org/645923002/diff/160001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/645923002/diff/160001/media/audio/pulse/pulse_input.cc#newcode205 media/audio/pulse/pulse_input.cc:205: AutoPulseLock auto_lock(pa_mainloop_); Done.
6 years, 2 months ago (2014-10-14 14:21:13 UTC) #12
no longer working on chromium
lgtm https://codereview.chromium.org/645923002/diff/180001/media/audio/pulse/pulse_input.h File media/audio/pulse/pulse_input.h (right): https://codereview.chromium.org/645923002/diff/180001/media/audio/pulse/pulse_input.h#newcode49 media/audio/pulse/pulse_input.h:49: int error, void* user_data); nit, indentation.
6 years, 2 months ago (2014-10-14 14:23:29 UTC) #13
henrika (OOO until Aug 14)
Thanks. Will do Mac next.
6 years, 2 months ago (2014-10-14 14:25:54 UTC) #14
henrika (OOO until Aug 14)
Tommi, please check. Now added Mac support as well. Works for stereo mic. Tommi: not ...
6 years, 2 months ago (2014-10-15 11:52:09 UTC) #15
henrika (OOO until Aug 14)
Tommi, as discussed off-line: also added usage of the new API in media/audio/audio_input_controller.cc. Goal is ...
6 years, 2 months ago (2014-10-15 13:04:30 UTC) #16
tommi (sloooow) - chröme
looks pretty good :) got some nits and double checks https://codereview.chromium.org/645923002/diff/320001/media/audio/audio_input_controller.cc File media/audio/audio_input_controller.cc (right): https://codereview.chromium.org/645923002/diff/320001/media/audio/audio_input_controller.cc#newcode586 ...
6 years, 2 months ago (2014-10-15 17:00:48 UTC) #17
henrika (OOO until Aug 14)
Thanks Tommi. PTAL https://codereview.chromium.org/645923002/diff/320001/media/audio/audio_input_controller.cc File media/audio/audio_input_controller.cc (right): https://codereview.chromium.org/645923002/diff/320001/media/audio/audio_input_controller.cc#newcode586 media/audio/audio_input_controller.cc:586: std::string log_string; On 2014/10/15 17:00:48, tommi ...
6 years, 2 months ago (2014-10-16 09:58:00 UTC) #18
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/645923002/diff/340001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/645923002/diff/340001/media/audio/pulse/pulse_input.cc#newcode240 media/audio/pulse/pulse_input.cc:240: nit: remove empty line
6 years, 2 months ago (2014-10-16 12:36:54 UTC) #19
henrika (OOO until Aug 14)
Done. https://codereview.chromium.org/645923002/diff/340001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/645923002/diff/340001/media/audio/pulse/pulse_input.cc#newcode240 media/audio/pulse/pulse_input.cc:240: On 2014/10/16 12:36:53, tommi wrote: > nit: remove ...
6 years, 2 months ago (2014-10-16 13:04:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645923002/360001
6 years, 2 months ago (2014-10-16 13:05:50 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/18036)
6 years, 2 months ago (2014-10-16 13:14:18 UTC) #24
henrika (OOO until Aug 14)
Adding rkc@ as TBR due to: ** Presubmit ERRORS ** Missing LGTM from an OWNER ...
6 years, 2 months ago (2014-10-16 13:46:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645923002/360001
6 years, 2 months ago (2014-10-16 13:48:09 UTC) #27
commit-bot: I haz the power
Committed patchset #14 (id:360001)
6 years, 2 months ago (2014-10-16 14:44:25 UTC) #28
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 14:45:13 UTC) #29
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/c569d98674f56fccf39c53f7ec7a63127755390f
Cr-Commit-Position: refs/heads/master@{#299891}

Powered by Google App Engine
This is Rietveld 408576698