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

Issue 12387006: Pass more detailed audio hardware configuration information to the renderer (Closed)

Created:
7 years, 9 months ago by Chris Rogers
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, sail+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Pass more detailed audio hardware configuration information to the renderer AudioHardwareConfig currently contains an ad-hoc mix of pieces of information about the audio input and output hardware. This CL adds more complete and symmetric information about the audio hardware as tracked in AudioHardwareConfig. The ChannelMixer is also upgraded to allow for "discrete" up and down mixing. BUG=none TEST=manual - several tests updated Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187936

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 51

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 6

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+462 lines, -166 lines) Patch
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -10 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/common/media/media_param_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -2 lines 0 comments Download
M content/common/media/media_param_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -6 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 1 chunk +16 lines, -1 line 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +19 lines, -6 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 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_input_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -9 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M content/test/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/test/webrtc_audio_device_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -3 lines 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +7 lines, -9 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 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_output_resampler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_parameters.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -1 line 0 comments Download
M media/audio/audio_parameters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -2 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +10 lines, -0 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +116 lines, -8 lines 1 comment Download
M media/base/audio_converter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -2 lines 0 comments Download
M media/base/audio_hardware_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +19 lines, -14 lines 0 comments Download
M media/base/audio_hardware_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +53 lines, -26 lines 0 comments Download
M media/base/audio_hardware_config_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +48 lines, -8 lines 0 comments Download
M media/base/channel_layout.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
M media/base/channel_layout.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +29 lines, -0 lines 0 comments Download
M media/base/channel_mixer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -1 line 0 comments Download
M media/base/channel_mixer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +53 lines, -17 lines 0 comments Download
M media/base/channel_mixer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -26 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Chris Rogers
Not for formal review yet. The actual code here will need to change somewhat based ...
7 years, 9 months ago (2013-02-28 01:56:32 UTC) #1
DaleCurtis
- I don't see the CHANNEL_LAYOUT_UNSUPPORTED stuff we discussed? - Changing to AudioParameters everywhere sounds ...
7 years, 9 months ago (2013-02-28 02:18:08 UTC) #2
DaleCurtis
Otherwise the idea looks fine to me!
7 years, 9 months ago (2013-02-28 02:18:17 UTC) #3
Chris Rogers
PTAL - I've rebased after Shijing's nice AudioUtilities re-factoring. p.s. I'm not crazy about using ...
7 years, 9 months ago (2013-03-06 02:47:57 UTC) #4
DaleCurtis
Whoops, when I suggested that name I thought it wasn't in use already. You're right ...
7 years, 9 months ago (2013-03-06 19:00:40 UTC) #5
DaleCurtis
https://codereview.chromium.org/12387006/diff/24001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/12387006/diff/24001/media/audio/mac/audio_manager_mac.cc#newcode343 media/audio/mac/audio_manager_mac.cc:343: channel_layout = input_params.channel_layout(); Instead of doing this I think ...
7 years, 9 months ago (2013-03-06 19:19:30 UTC) #6
Chris Rogers
PTAL https://codereview.chromium.org/12387006/diff/24001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/12387006/diff/24001/media/audio/mac/audio_manager_mac.cc#newcode343 media/audio/mac/audio_manager_mac.cc:343: channel_layout = input_params.channel_layout(); On 2013/03/06 19:19:30, DaleCurtis wrote: ...
7 years, 9 months ago (2013-03-07 00:34:17 UTC) #7
DaleCurtis
Haven't rereviewed yet, but xians CL just got reverted so you may want to wait ...
7 years, 9 months ago (2013-03-07 01:52:46 UTC) #8
DaleCurtis
https://codereview.chromium.org/12387006/diff/43001/content/common/media/media_param_traits.cc File content/common/media/media_param_traits.cc (right): https://codereview.chromium.org/12387006/diff/43001/content/common/media/media_param_traits.cc#newcode47 content/common/media/media_param_traits.cc:47: if (channel_layout == media::CHANNEL_LAYOUT_DISCRETE) Does anything use Reset() that ...
7 years, 9 months ago (2013-03-07 02:41:39 UTC) #9
Chris Rogers
Dale, thanks for your detailed review so far. I think I've addressed the comments. PTAL ...
7 years, 9 months ago (2013-03-09 01:37:50 UTC) #10
DaleCurtis
lgtm % comments. https://chromiumcodereview.appspot.com/12387006/diff/43001/media/base/channel_mixer.cc File media/base/channel_mixer.cc (right): https://chromiumcodereview.appspot.com/12387006/diff/43001/media/base/channel_mixer.cc#newcode59 media/base/channel_mixer.cc:59: ChannelMixer::ChannelMixer(ChannelLayout input_layout, On 2013/03/09 01:37:50, Chris ...
7 years, 9 months ago (2013-03-11 19:21:50 UTC) #11
Chris Rogers
+jamesr: content OWNERS review https://codereview.chromium.org/12387006/diff/84001/media/audio/audio_parameters.cc File media/audio/audio_parameters.cc (left): https://codereview.chromium.org/12387006/diff/84001/media/audio/audio_parameters.cc#oldcode56 media/audio/audio_parameters.cc:56: channels_ = ChannelLayoutToChannelCount(channel_layout); On 2013/03/11 ...
7 years, 9 months ago (2013-03-12 22:32:31 UTC) #12
Chris Rogers
+piman: content OWNERS review
7 years, 9 months ago (2013-03-12 23:01:21 UTC) #13
piman
On 2013/03/12 23:01:21, Chris Rogers wrote: > +piman: content OWNERS review LGTM for content/ You'll ...
7 years, 9 months ago (2013-03-12 23:21:02 UTC) #14
Chris Rogers
+palmer: security review for IPC changes
7 years, 9 months ago (2013-03-12 23:30:52 UTC) #15
palmer
IPC security LGTM. https://codereview.chromium.org/12387006/diff/98007/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/12387006/diff/98007/media/audio/mac/audio_manager_mac.cc#newcode438 media/audio/mac/audio_manager_mac.cc:438: int user_buffer_size = GetUserBufferSize(); Sizes should ...
7 years, 9 months ago (2013-03-13 19:22:31 UTC) #16
Chris Rogers
7 years, 9 months ago (2013-03-13 20:36:54 UTC) #17
Message was sent while issue was closed.
Committed patchset #14 manually as r187936 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698