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

Issue 304233006: Always use the source channel layout with AudioBufferConverter. (Closed)

Created:
6 years, 6 months ago by DaleCurtis
Modified:
6 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Always use the source channel layout with AudioBufferConverter. There are no web sites currently using this feature, but it causes all multichannel users to waste resources unnecessarily upmixing, generating, and transferring empty channel data. Further this breaks fancy OSX multichannel users which have non standard channel layouts. Mostly because we don't want to deal with the plethora of ways OSX wants to map channels ourselves. Instead we can require that MSE users which want to change channel counts, must specify the maximum number of channels in the first initialization segment. This also fixes use cases where clients routed multichannel streams into WebAudio for processing instead of actual playout. BUG=266674, 379288 TEST=Only 2 channels are created for stereo sources when a 7.1 device is connected. R=rileya@chromium.org, wolenetz@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274068

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comment. #

Patch Set 3 : Fix unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -10 lines) Patch
M media/filters/audio_renderer_impl.cc View 1 1 chunk +13 lines, -7 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
DaleCurtis
Tiny change, but has some impact on how MSE users will achieve channel layout changes; ...
6 years, 6 months ago (2014-05-29 23:18:08 UTC) #1
rileya (GONE FROM CHROMIUM)
lgtm. I can't speak too confidently to the impact on MSE users, so I defer ...
6 years, 6 months ago (2014-05-30 00:39:46 UTC) #2
DaleCurtis
Note: This also fixes / unblocks hooking multi-channel streams into WebAudio on a system with ...
6 years, 6 months ago (2014-05-30 18:01:40 UTC) #3
wolenetz
lgtm % nit and similarly updating the CL title/description according to same nit. https://codereview.chromium.org/304233006/diff/1/media/filters/audio_renderer_impl.cc File ...
6 years, 6 months ago (2014-05-30 23:01:00 UTC) #4
DaleCurtis
Description updated. https://codereview.chromium.org/304233006/diff/1/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/304233006/diff/1/media/filters/audio_renderer_impl.cc#newcode289 media/filters/audio_renderer_impl.cc:289: // channel layouts (http://crbug.com/266674) only allow channel ...
6 years, 6 months ago (2014-05-30 23:08:56 UTC) #5
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 6 months ago (2014-05-30 23:09:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/304233006/20001
6 years, 6 months ago (2014-05-30 23:11:20 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 05:00:40 UTC) #8
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 6 months ago (2014-05-31 05:56:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/304233006/40001
6 years, 6 months ago (2014-05-31 05:57:24 UTC) #10
DaleCurtis
6 years, 6 months ago (2014-05-31 22:24:52 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 manually as r274068 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698