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

Issue 12218036: Enable audio capture on Android (Closed)

Created:
7 years, 10 months ago by leozwang1
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Base URL:
https://src.chromium.org/svn/trunk/src/
Visibility:
Public.

Description

Enable audio capture on Android This CL JUST enables audio capture on Android, further tunning and making audio work better might take extra time, I think it's better to first enable it. A few TODOs are added and minor changes are added into CL too. BUG=161417 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181948

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use the default as the default device name #

Patch Set 3 : rebase #

Patch Set 4 : solve unit test #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : fix ifdef error #

Total comments: 4

Patch Set 7 : fix unit test name because of switching terminals #

Total comments: 1

Patch Set 8 : disable agc test which is flanky on Android #

Total comments: 1

Patch Set 9 : fix typo #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -4 lines) Patch
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +25 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M media/audio/android/audio_manager_android.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M media/audio/android/audio_manager_android.cc View 1 2 3 4 5 6 7 8 9 2 chunks +28 lines, -0 lines 0 comments Download
M media/audio/audio_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
wjia(left Chromium)
Please fix unittests. https://codereview.chromium.org/12218036/diff/1/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/12218036/diff/1/media/audio/android/audio_manager_android.cc#newcode17 media/audio/android/audio_manager_android.cc:17: static const char kAndroidInputDeviceId[] = "mic"; ...
7 years, 10 months ago (2013-02-06 18:17:05 UTC) #1
leozwang1
https://codereview.chromium.org/12218036/diff/1/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/12218036/diff/1/media/audio/android/audio_manager_android.cc#newcode17 media/audio/android/audio_manager_android.cc:17: static const char kAndroidInputDeviceId[] = "mic"; I removed these ...
7 years, 10 months ago (2013-02-11 08:05:00 UTC) #2
leozwang1
Hi, Wei and Shijing, this cl is going to enable audio capture on Android, I ...
7 years, 10 months ago (2013-02-11 08:08:56 UTC) #3
leozwang1
Add Tommi as the reviewer.
7 years, 10 months ago (2013-02-11 08:14:19 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/12218036/diff/2006/content/renderer/media/webrtc_audio_device_unittest.cc File content/renderer/media/webrtc_audio_device_unittest.cc (right): https://codereview.chromium.org/12218036/diff/2006/content/renderer/media/webrtc_audio_device_unittest.cc#newcode328 content/renderer/media/webrtc_audio_device_unittest.cc:328: #if !defined(OS_ANDROID) Instead of this, can you use the ...
7 years, 10 months ago (2013-02-11 09:52:58 UTC) #5
leozwang1
Hi Tommi, thanks for reviewing it, please take a look at patch 5. https://codereview.chromium.org/12218036/diff/2006/content/renderer/media/webrtc_audio_device_unittest.cc File ...
7 years, 10 months ago (2013-02-11 18:03:43 UTC) #6
no longer working on chromium
One question, and I am going to defer my part to Tommi, please don't wait ...
7 years, 10 months ago (2013-02-11 18:20:36 UTC) #7
leozwang1
Something was wrong when I switched client, please take a look at patch 7. Seems ...
7 years, 10 months ago (2013-02-11 21:00:48 UTC) #8
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/12218036/diff/6013/content/renderer/media/webrtc_audio_device_unittest.cc File content/renderer/media/webrtc_audio_device_unittest.cc (right): https://codereview.chromium.org/12218036/diff/6013/content/renderer/media/webrtc_audio_device_unittest.cc#newcode327 content/renderer/media/webrtc_audio_device_unittest.cc:327: // disable this unit test on Android for ...
7 years, 10 months ago (2013-02-11 22:59:11 UTC) #9
leozwang1
Thanks Tommi, will commit it for M26. Seems tests are still flanky, will address these ...
7 years, 10 months ago (2013-02-11 23:11:32 UTC) #10
wjia(left Chromium)
lgtm with nit. https://codereview.chromium.org/12218036/diff/3023/content/renderer/media/webrtc_audio_device_unittest.cc File content/renderer/media/webrtc_audio_device_unittest.cc (right): https://codereview.chromium.org/12218036/diff/3023/content/renderer/media/webrtc_audio_device_unittest.cc#newcode477 content/renderer/media/webrtc_audio_device_unittest.cc:477: // FullDuplexAudioWithAGC is flanky on Android, ...
7 years, 10 months ago (2013-02-12 02:34:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12218036/2023
7 years, 10 months ago (2013-02-12 03:56:29 UTC) #12
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98491
7 years, 10 months ago (2013-02-12 04:48:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12218036/2023
7 years, 10 months ago (2013-02-12 05:43:08 UTC) #14
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98542
7 years, 10 months ago (2013-02-12 06:41:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12218036/2023
7 years, 10 months ago (2013-02-12 12:04:17 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98667
7 years, 10 months ago (2013-02-12 12:48:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12218036/2023
7 years, 10 months ago (2013-02-12 15:03:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12218036/10013
7 years, 10 months ago (2013-02-12 17:00:15 UTC) #19
no longer working on chromium
https://codereview.chromium.org/12218036/diff/11008/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12218036/diff/11008/content/renderer/media/webrtc_audio_capturer.cc#newcode57 content/renderer/media/webrtc_audio_capturer.cc:57: buffer_size = 2 * sample_rate / 100; On 2013/02/11 ...
7 years, 10 months ago (2013-02-12 20:04:45 UTC) #20
leozwang1
7 years, 10 months ago (2013-02-12 20:14:17 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/12218036/diff/11008/content/renderer/media/we...
File content/renderer/media/webrtc_audio_capturer.cc (right):

https://codereview.chromium.org/12218036/diff/11008/content/renderer/media/we...
content/renderer/media/webrtc_audio_capturer.cc:57: buffer_size = 2 *
sample_rate / 100;
Most of tests I have done are video+audio. The next step is to try audio only to
see where the baseline is.

Powered by Google App Engine
This is Rietveld 408576698