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

Issue 1323403005: Allow AudioOutputDevice objects to be initialized with a specific hardware output device and store … (Closed)

Created:
5 years, 3 months ago by Guido Urdaneta
Modified:
5 years, 3 months ago
Reviewers:
palmer, bbudge, DaleCurtis
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow AudioOutputDevice objects to be initialized with a specific hardware output device and store its output parameters. BUG=506507, 506124 Committed: https://crrev.com/85d67f542541472da3a6e0f3808c3ee5116c4dcd Cr-Commit-Position: refs/heads/master@{#349859}

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : Remove logging #

Patch Set 4 : Fix error handling #

Patch Set 5 : Set parameters in AOD only once #

Patch Set 6 : Change return type of GetOutputParameters() #

Patch Set 7 : minor fix #

Patch Set 8 : Split permissions check and device-ID translation for clarity #

Total comments: 37

Patch Set 9 : Some of dalecurtis' comments. Move delayed Start() logic from ARH to AOD. #

Patch Set 10 : Use DCHECK_EQ instead of DCHECK #

Patch Set 11 : rebase #

Total comments: 24

Patch Set 12 : dalecurtis' comments #

Total comments: 5

Patch Set 13 : dalecurtis' comments #

Patch Set 14 : Typo fix #

Patch Set 15 : Revert DCHECK in destructor #

Total comments: 3

Patch Set 16 : bbudge's comment #

Total comments: 10

Patch Set 17 : palmer's comments. migrate from GURL to url::Origin everywhere #

Patch Set 18 : Fix some comments #

Patch Set 19 : Minor improvement to FakeOutputDevice #

Patch Set 20 : Palmer's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+962 lines, -409 lines) Patch
M content/browser/renderer_host/media/audio_renderer_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +99 lines, -35 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +284 lines, -133 lines 2 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 11 chunks +57 lines, -21 lines 0 comments Download
M content/common/media/audio_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +23 lines, -10 lines 0 comments Download
M content/renderer/media/audio_device_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +23 lines, -4 lines 0 comments Download
M content/renderer/media/audio_device_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +12 lines, -5 lines 0 comments Download
M content/renderer/media/audio_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/media/audio_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +52 lines, -23 lines 0 comments Download
M content/renderer/media/audio_message_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +43 lines, -9 lines 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +21 lines, -9 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +7 lines, -3 lines 0 comments Download
M media/audio/audio_output_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +45 lines, -18 lines 0 comments Download
M media/audio/audio_output_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +142 lines, -63 lines 0 comments Download
M media/audio/audio_output_device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +64 lines, -24 lines 0 comments Download
M media/audio/audio_output_ipc.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +28 lines, -12 lines 0 comments Download
M media/base/audio_renderer_sink.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/fake_output_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -4 lines 0 comments Download
M media/base/fake_output_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -1 line 0 comments Download
M media/base/output_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +9 lines, -6 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_util.cc View 2 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (6 generated)
Guido Urdaneta
5 years, 3 months ago (2015-09-07 11:14:23 UTC) #2
DaleCurtis
Hmm, this is more complex than I expected. Can you think about what we can ...
5 years, 3 months ago (2015-09-09 01:31:58 UTC) #3
Guido Urdaneta
https://codereview.chromium.org/1323403005/diff/140001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1323403005/diff/140001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode154 content/browser/renderer_host/media/audio_renderer_host.cc:154: class AudioRendererHost::AuthorizationData { I removed this class altogether and ...
5 years, 3 months ago (2015-09-09 16:22:24 UTC) #4
Guido Urdaneta
On 2015/09/09 01:31:58, DaleCurtis wrote: > Hmm, this is more complex than I expected. Can ...
5 years, 3 months ago (2015-09-09 16:38:39 UTC) #5
DaleCurtis
Almost there, sorry for the review delay been at a manager summit all week. https://codereview.chromium.org/1323403005/diff/140001/content/browser/renderer_host/media/audio_renderer_host.cc ...
5 years, 3 months ago (2015-09-12 01:17:19 UTC) #6
Guido Urdaneta
https://codereview.chromium.org/1323403005/diff/200001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1323403005/diff/200001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode392 content/browser/renderer_host/media/audio_renderer_host.cc:392: void AudioRendererHost::RequestDeviceAuthorizationAccessChecked( On 2015/09/12 01:17:19, DaleCurtis wrote: > OnDeviceAuthorized? ...
5 years, 3 months ago (2015-09-14 11:35:49 UTC) #7
DaleCurtis
lgtm % couple nits. https://codereview.chromium.org/1323403005/diff/220001/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc (right): https://codereview.chromium.org/1323403005/diff/220001/media/audio/audio_output_device.cc#newcode94 media/audio/audio_output_device.cc:94: if (!did_set_output_params_.IsSignaled()) You can instead ...
5 years, 3 months ago (2015-09-14 20:07:42 UTC) #8
Guido Urdaneta
palmer@chromium.org: Please review changes in content/common/media bbudge@chromium.org: Please review changes in content/renderer/pepper https://codereview.chromium.org/1323403005/diff/220001/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc ...
5 years, 3 months ago (2015-09-15 08:28:29 UTC) #10
Guido Urdaneta
https://codereview.chromium.org/1323403005/diff/220001/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc (right): https://codereview.chromium.org/1323403005/diff/220001/media/audio/audio_output_device.cc#newcode94 media/audio/audio_output_device.cc:94: if (!did_set_output_params_.IsSignaled()) On 2015/09/15 08:28:29, Guido Urdaneta wrote: > ...
5 years, 3 months ago (2015-09-15 09:45:14 UTC) #11
bbudge
https://codereview.chromium.org/1323403005/diff/280001/content/renderer/pepper/pepper_platform_audio_output.cc File content/renderer/pepper/pepper_platform_audio_output.cc (right): https://codereview.chromium.org/1323403005/diff/280001/content/renderer/pepper/pepper_platform_audio_output.cc#newcode77 content/renderer/pepper/pepper_platform_audio_output.cc:77: const media::AudioParameters& output_params) {} I'm assuming 'success' is always ...
5 years, 3 months ago (2015-09-15 11:39:42 UTC) #12
Guido Urdaneta
https://codereview.chromium.org/1323403005/diff/280001/content/renderer/pepper/pepper_platform_audio_output.cc File content/renderer/pepper/pepper_platform_audio_output.cc (right): https://codereview.chromium.org/1323403005/diff/280001/content/renderer/pepper/pepper_platform_audio_output.cc#newcode77 content/renderer/pepper/pepper_platform_audio_output.cc:77: const media::AudioParameters& output_params) {} On 2015/09/15 11:39:42, bbudge wrote: ...
5 years, 3 months ago (2015-09-15 11:55:14 UTC) #13
bbudge
content/renderer/pepper LGTM https://codereview.chromium.org/1323403005/diff/280001/content/renderer/pepper/pepper_platform_audio_output.cc File content/renderer/pepper/pepper_platform_audio_output.cc (right): https://codereview.chromium.org/1323403005/diff/280001/content/renderer/pepper/pepper_platform_audio_output.cc#newcode77 content/renderer/pepper/pepper_platform_audio_output.cc:77: const media::AudioParameters& output_params) {} On 2015/09/15 11:55:14, ...
5 years, 3 months ago (2015-09-15 12:59:12 UTC) #14
palmer
https://codereview.chromium.org/1323403005/diff/300001/content/common/media/audio_messages.h File content/common/media/audio_messages.h (right): https://codereview.chromium.org/1323403005/diff/300001/content/common/media/audio_messages.h#newcode101 content/common/media/audio_messages.h:101: // Request that is sent to the browser to ...
5 years, 3 months ago (2015-09-15 20:29:24 UTC) #15
Guido Urdaneta
https://codereview.chromium.org/1323403005/diff/300001/content/common/media/audio_messages.h File content/common/media/audio_messages.h (right): https://codereview.chromium.org/1323403005/diff/300001/content/common/media/audio_messages.h#newcode101 content/common/media/audio_messages.h:101: // Request that is sent to the browser to ...
5 years, 3 months ago (2015-09-16 11:34:49 UTC) #16
palmer
https://codereview.chromium.org/1323403005/diff/300001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1323403005/diff/300001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode359 content/browser/renderer_host/media/audio_renderer_host.cc:359: if (LookupById(stream_id) || IsAuthorizationStarted(stream_id)) It would be good to ...
5 years, 3 months ago (2015-09-17 20:31:57 UTC) #17
Guido Urdaneta
https://codereview.chromium.org/1323403005/diff/300001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1323403005/diff/300001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode359 content/browser/renderer_host/media/audio_renderer_host.cc:359: if (LookupById(stream_id) || IsAuthorizationStarted(stream_id)) On 2015/09/17 20:31:57, palmer wrote: ...
5 years, 3 months ago (2015-09-18 09:23:07 UTC) #18
palmer
https://codereview.chromium.org/1323403005/diff/380001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1323403005/diff/380001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode85 content/browser/renderer_host/media/audio_renderer_host.cc:85: if (device_id.empty()) Why are empty device IDs valid? What ...
5 years, 3 months ago (2015-09-18 19:24:24 UTC) #19
Guido Urdaneta
https://codereview.chromium.org/1323403005/diff/380001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1323403005/diff/380001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode85 content/browser/renderer_host/media/audio_renderer_host.cc:85: if (device_id.empty()) On 2015/09/18 19:24:24, palmer wrote: > Why ...
5 years, 3 months ago (2015-09-18 20:17:56 UTC) #20
palmer
LGTM.
5 years, 3 months ago (2015-09-18 20:20:01 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1323403005/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1323403005/380001
5 years, 3 months ago (2015-09-18 20:24:28 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-18 21:40:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1323403005/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1323403005/380001
5 years, 3 months ago (2015-09-19 07:36:50 UTC) #28
commit-bot: I haz the power
Committed patchset #20 (id:380001)
5 years, 3 months ago (2015-09-19 07:40:59 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-19 07:41:43 UTC) #30
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/85d67f542541472da3a6e0f3808c3ee5116c4dcd
Cr-Commit-Position: refs/heads/master@{#349859}

Powered by Google App Engine
This is Rietveld 408576698