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 9418042: Adding microphone volume support to chrome. (Closed)

Created:
8 years, 10 months ago by no longer working on chromium
Modified:
8 years, 9 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, vrk (LEFT CHROMIUM), ihf+watch_chromium.org
Visibility:
Public.

Description

Adding microphone volume support to chrome in linux. Totally there are 3 APIs are added: Get/SetMicVolume() and GetMaxMicVolume(). And a new AudioInputVolumeTest is also added to media_unittests. BUG=115087 TEST=media_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123959

Patch Set 1 #

Patch Set 2 : adding volume support to mac #

Patch Set 3 : adding dummy functions to build in windows #

Patch Set 4 : please review #

Total comments: 56

Patch Set 5 : addressed comments from reviewers #

Total comments: 4

Patch Set 6 : rebase #

Patch Set 7 : small changes on alsa code #

Total comments: 14

Patch Set 8 : addressed henrik's comments #

Total comments: 34

Patch Set 9 : addressed tommi's comments #

Patch Set 10 : rebase #

Patch Set 11 : added a comment about the number of channel, and fix a compiling issue on mac #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+699 lines, -14 lines) Patch
A media/audio/audio_input_volume_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +151 lines, -0 lines 1 comment Download
M media/audio/audio_io.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M media/audio/fake_audio_input_stream.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/fake_audio_input_stream.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_input.h View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M media/audio/linux/alsa_input.cc View 1 2 3 4 5 6 5 chunks +81 lines, -9 lines 0 comments Download
M media/audio/linux/alsa_util.h View 2 chunks +10 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_util.cc View 1 2 3 4 5 6 7 8 3 chunks +105 lines, -1 line 0 comments Download
M media/audio/linux/alsa_wrapper.h View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_wrapper.cc View 1 2 3 4 5 6 7 8 2 chunks +65 lines, -1 line 0 comments Download
M media/audio/mac/audio_input_mac.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/mac/audio_input_mac.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -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 5 chunks +171 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M media/audio/win/wavein_input_win.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/win/wavein_input_win.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
no longer working on chromium
Please review, and feel free to add more reviewers if you think they should be ...
8 years, 10 months ago (2012-02-21 10:26:44 UTC) #1
tommi (sloooow) - chröme
http://codereview.chromium.org/9418042/diff/9001/media/audio/linux/alsa_input.cc File media/audio/linux/alsa_input.cc (right): http://codereview.chromium.org/9418042/diff/9001/media/audio/linux/alsa_input.cc#newcode71 media/audio/linux/alsa_input.cc:71: pcm_format, latency_us); instead of assigning to device_name and copy ...
8 years, 10 months ago (2012-02-21 14:03:24 UTC) #2
henrika (OOO until Aug 14)
First round. Did not check the Linux part this time. http://codereview.chromium.org/9418042/diff/9001/media/audio/audio_input_volume_unittest.cc File media/audio/audio_input_volume_unittest.cc (right): http://codereview.chromium.org/9418042/diff/9001/media/audio/audio_input_volume_unittest.cc#newcode36 ...
8 years, 10 months ago (2012-02-21 14:03:47 UTC) #3
no longer working on chromium
I have addressed all the comments, please take another round. http://codereview.chromium.org/9418042/diff/9001/media/audio/audio_input_volume_unittest.cc File media/audio/audio_input_volume_unittest.cc (right): http://codereview.chromium.org/9418042/diff/9001/media/audio/audio_input_volume_unittest.cc#newcode36 ...
8 years, 10 months ago (2012-02-21 18:01:38 UTC) #4
scherkus (not reviewing)
http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h File media/audio/audio_io.h (right): http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h#newcode159 media/audio/audio_io.h:159: virtual void GetMaxMicVolume(double* max_volume) = 0; do we really ...
8 years, 10 months ago (2012-02-21 19:20:01 UTC) #5
henrika (OOO until Aug 14)
Andrew, one comment regarding adding "Mic" to the names. The idea here was to separate ...
8 years, 10 months ago (2012-02-21 22:19:40 UTC) #6
tommi (sloooow) - chröme
It's not specific to a mic (as opposed to other input devices) is it? Would ...
8 years, 10 months ago (2012-02-21 22:26:52 UTC) #7
no longer working on chromium
I was about to discuss with you guys on the names. It looks to me ...
8 years, 10 months ago (2012-02-21 22:27:47 UTC) #8
no longer working on chromium
Changed the volume interface based on the comments from Andrew. http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h File media/audio/audio_io.h (right): http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h#newcode159 ...
8 years, 10 months ago (2012-02-22 17:02:23 UTC) #9
no longer working on chromium
http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h File media/audio/audio_io.h (right): http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h#newcode165 media/audio/audio_io.h:165: virtual void GetMicVolume(double* volume) = 0; On 2012/02/21 19:20:01, ...
8 years, 10 months ago (2012-02-22 17:27:24 UTC) #10
scherkus (not reviewing)
On 2012/02/22 17:27:24, xians1 wrote: > http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h > File media/audio/audio_io.h (right): > > http://codereview.chromium.org/9418042/diff/10004/media/audio/audio_io.h#newcode165 > ...
8 years, 10 months ago (2012-02-23 05:48:59 UTC) #11
henrika (OOO until Aug 14)
Almost there. Please sort out the stream latency parts for Mac first. Should not be ...
8 years, 10 months ago (2012-02-23 11:50:41 UTC) #12
no longer working on chromium
Changed the code based on the comments from Henrik. http://codereview.chromium.org/9418042/diff/19003/media/audio/audio_input_volume_unittest.cc File media/audio/audio_input_volume_unittest.cc (right): http://codereview.chromium.org/9418042/diff/19003/media/audio/audio_input_volume_unittest.cc#newcode123 media/audio/audio_input_volume_unittest.cc:123: ...
8 years, 10 months ago (2012-02-24 09:27:48 UTC) #13
tommi (sloooow) - chröme
http://codereview.chromium.org/9418042/diff/26001/media/audio/audio_input_volume_unittest.cc File media/audio/audio_input_volume_unittest.cc (right): http://codereview.chromium.org/9418042/diff/26001/media/audio/audio_input_volume_unittest.cc#newcode63 media/audio/audio_input_volume_unittest.cc:63: #endif we also have code for bsd although we ...
8 years, 10 months ago (2012-02-24 12:07:33 UTC) #14
no longer working on chromium
Changed the code based on the comments from Tommi. http://codereview.chromium.org/9418042/diff/26001/media/audio/audio_input_volume_unittest.cc File media/audio/audio_input_volume_unittest.cc (right): http://codereview.chromium.org/9418042/diff/26001/media/audio/audio_input_volume_unittest.cc#newcode63 media/audio/audio_input_volume_unittest.cc:63: ...
8 years, 10 months ago (2012-02-24 15:05:55 UTC) #15
tommi (sloooow) - chröme
lgtm. please add a little note for the number_of_channels_ that explains that e.g. a value ...
8 years, 10 months ago (2012-02-27 14:47:35 UTC) #16
no longer working on chromium
On 2012/02/27 14:47:35, tommi wrote: > lgtm. please add a little note for the number_of_channels_ ...
8 years, 10 months ago (2012-02-27 16:34:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/9418042/37002
8 years, 10 months ago (2012-02-27 23:26:50 UTC) #18
commit-bot: I haz the power
Try job failure for 9418042-37002 (retry) on win_rel for steps "unit_tests, browser_tests, ui_tests". It's a ...
8 years, 10 months ago (2012-02-28 05:10:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/9418042/37002
8 years, 9 months ago (2012-02-28 09:58:38 UTC) #20
commit-bot: I haz the power
Change committed as 123959
8 years, 9 months ago (2012-02-28 11:23:19 UTC) #21
henrika (OOO until Aug 14)
LGTM.
8 years, 9 months ago (2012-02-28 16:02:04 UTC) #22
nilesh
8 years, 9 months ago (2012-02-28 19:24:23 UTC) #23
http://codereview.chromium.org/9418042/diff/37002/media/audio/audio_input_vol...
File media/audio/audio_input_volume_unittest.cc (right):

http://codereview.chromium.org/9418042/diff/37002/media/audio/audio_input_vol...
media/audio/audio_input_volume_unittest.cc:64: #error Unsupported platform
I am going to exclude this test from the android build. Let me know if this is
not the right thing to do.

Powered by Google App Engine
This is Rietveld 408576698