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

Issue 1184473002: Add support for the audio-output-device switching IPC mechanism to the renderer lower layers (media… (Closed)

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

Description

Add support for the audio-output-device switching IPC mechanism to the renderer lower layers (media::AudioOutputDevice, content::AudioMessageFilter and related classes). The idea is to provide support for the Audio Output Devices API (http://w3c.github.io/mediacapture-output/) BUG=438023 Committed: https://crrev.com/8c7fc2c8746c9cb294a5906572f23fbfc34726b3 Cr-Commit-Position: refs/heads/master@{#334451} Committed: https://crrev.com/a0037e4cbf52a6e92e3fa01fafbd7e3667cccf37 Cr-Commit-Position: refs/heads/master@{#334520}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove callback runner, and use plain callbacks #

Patch Set 3 : Fix AudioOutputDevice unit test #

Patch Set 4 : rebase #

Patch Set 5 : Resolve callback in AudioOutputDevice destructor and make MockAudioRendererSink friendly to the and… #

Patch Set 6 : Fix comments #

Total comments: 6

Patch Set 7 : Fix names of variables in unit test #

Patch Set 8 : Move callback typedef to AudioRendererSink #

Patch Set 9 : Change error return code for ClocklessAudioSink to NOT_SUPPORTED #

Total comments: 1

Patch Set 10 : Use ResetAndReturn to reset and run callback #

Patch Set 11 : Fix build dependencies for audio_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -2 lines) Patch
M content/renderer/media/audio_message_filter.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/media/audio_message_filter.cc View 1 2 3 5 chunks +34 lines, -0 lines 0 comments Download
M content/renderer/media/audio_message_filter_unittest.cc View 1 2 3 5 chunks +28 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer_unittest.cc View 1 3 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_output_device.h View 1 2 3 4 5 6 7 8 9 5 chunks +15 lines, -0 lines 0 comments Download
M media/audio/audio_output_device.cc View 1 2 3 4 5 6 7 8 9 6 chunks +64 lines, -1 line 0 comments Download
M media/audio/audio_output_device_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +45 lines, -0 lines 0 comments Download
M media/audio/audio_output_ipc.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M media/audio/audio_output_stream_sink.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/audio/audio_output_stream_sink.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M media/audio/clockless_audio_sink.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/audio/clockless_audio_sink.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M media/audio/null_audio_sink.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/null_audio_sink.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M media/base/audio_renderer_mixer.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/base/audio_renderer_mixer.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M media/base/audio_renderer_mixer_input.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M media/base/audio_renderer_mixer_input.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M media/base/audio_renderer_sink.h View 1 2 3 4 5 6 7 2 chunks +26 lines, -0 lines 0 comments Download
M media/base/fake_audio_renderer_sink.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/base/fake_audio_renderer_sink.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M media/base/mock_audio_renderer_sink.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
Guido Urdaneta
Hi, Please review.
5 years, 6 months ago (2015-06-11 17:53:03 UTC) #2
DaleCurtis
Nice to see this coming along! Do you plan to hook up the reverse of ...
5 years, 6 months ago (2015-06-11 17:58:48 UTC) #3
Guido Urdaneta
On 2015/06/11 17:58:48, DaleCurtis wrote: > Nice to see this coming along! Do you plan ...
5 years, 6 months ago (2015-06-11 18:56:39 UTC) #4
bbudge
content/renderer/pepper lgtm
5 years, 6 months ago (2015-06-11 20:07:10 UTC) #5
Guido Urdaneta
https://codereview.chromium.org/1184473002/diff/1/media/base/audio_output_device_callback_util.h File media/base/audio_output_device_callback_util.h (right): https://codereview.chromium.org/1184473002/diff/1/media/base/audio_output_device_callback_util.h#newcode5 media/base/audio_output_device_callback_util.h:5: // Provides an utility class to support invocation of ...
5 years, 6 months ago (2015-06-11 20:10:10 UTC) #6
miu
lgtm. Looks like all my concerns from the original issue were addressed in this one. ...
5 years, 6 months ago (2015-06-12 21:25:14 UTC) #7
tommi (sloooow) - chröme
lgtm w/ fixing of style for non-global const variables https://codereview.chromium.org/1184473002/diff/100001/media/audio/audio_output_device_unittest.cc File media/audio/audio_output_device_unittest.cc (right): https://codereview.chromium.org/1184473002/diff/100001/media/audio/audio_output_device_unittest.cc#newcode216 media/audio/audio_output_device_unittest.cc:216: ...
5 years, 6 months ago (2015-06-13 06:16:04 UTC) #8
Guido Urdaneta
https://codereview.chromium.org/1184473002/diff/100001/media/audio/audio_output_device_unittest.cc File media/audio/audio_output_device_unittest.cc (right): https://codereview.chromium.org/1184473002/diff/100001/media/audio/audio_output_device_unittest.cc#newcode216 media/audio/audio_output_device_unittest.cc:216: const GURL kSecurityOrigin("http://localhost"); On 2015/06/13 06:16:04, tommi wrote: > ...
5 years, 6 months ago (2015-06-13 10:45:51 UTC) #9
DaleCurtis
lgtm https://codereview.chromium.org/1184473002/diff/160001/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc (right): https://codereview.chromium.org/1184473002/diff/160001/media/audio/audio_output_device.cc#newcode86 media/audio/audio_output_device.cc:86: current_switch_callback_->Run(SWITCH_OUTPUT_DEVICE_RESULT_ERROR_OBSOLETE); you can use base::ResetAndReturn() to achieve this.
5 years, 6 months ago (2015-06-15 16:58:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184473002/180001
5 years, 6 months ago (2015-06-15 19:08:21 UTC) #14
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-15 20:41:48 UTC) #15
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/8c7fc2c8746c9cb294a5906572f23fbfc34726b3 Cr-Commit-Position: refs/heads/master@{#334451}
5 years, 6 months ago (2015-06-15 20:43:28 UTC) #16
Jamie Madill
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/1186943003/ by jmadill@chromium.org. ...
5 years, 6 months ago (2015-06-15 21:27:29 UTC) #17
skobes
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/1191523005/ by skobes@chromium.org. ...
5 years, 6 months ago (2015-06-15 21:32:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184473002/200001
5 years, 6 months ago (2015-06-15 23:59:09 UTC) #21
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 6 months ago (2015-06-16 00:54:04 UTC) #22
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 00:55:10 UTC) #23
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/a0037e4cbf52a6e92e3fa01fafbd7e3667cccf37
Cr-Commit-Position: refs/heads/master@{#334520}

Powered by Google App Engine
This is Rietveld 408576698