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

Issue 1921963004: Add support for multichannel playback to OpenSLES output. (Closed)

Created:
4 years, 8 months ago by DaleCurtis
Modified:
4 years, 7 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, mlamouri+watch-media_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 multichannel playback to OpenSLES output. Ports the code from AOSP for detecting channel layouts given a channel count. No idea if it works though since I'm not sure how to setup a multichannel android device. Notably this also changes the mono layout from using the center channel to using the left channel mask per notes in the ported code. Multichannel is only supported on Lollipop+ devices since OpenSLES does not configure successfully on any KitKat device I've tried. BUG=607003 TEST=multichannel test clip. Committed: https://crrev.com/48c1c49bc3646cf90a59ad90260a43ff23001bf1 Cr-Commit-Position: refs/heads/master@{#391095}

Patch Set 1 #

Patch Set 2 : Remove include. #

Patch Set 3 : Whoops, add file. #

Total comments: 3

Patch Set 4 : Avoid multichannel on KitKat. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -13 lines) Patch
M media/audio/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M media/audio/android/audio_manager_android.cc View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M media/audio/android/opensles_input.cc View 1 chunk +1 line, -6 lines 0 comments Download
M media/audio/android/opensles_output.cc View 1 chunk +1 line, -6 lines 0 comments Download
M media/audio/android/opensles_util.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
A media/audio/android/opensles_util.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
DaleCurtis
+tsunghung who seems to have at least modified the code I ported from channel.{c,h} in ...
4 years, 8 months ago (2016-04-26 23:58:54 UTC) #2
DaleCurtis
If either of you have ideas for testing multichannel from an android device let me ...
4 years, 8 months ago (2016-04-27 00:00:06 UTC) #3
henrika (OOO until Aug 14)
Sorry for delaying but it is not clear to me how any other channel config ...
4 years, 7 months ago (2016-04-27 08:26:45 UTC) #4
DaleCurtis
On 2016/04/27 at 08:26:45, henrika wrote: > Sorry for delaying but it is not clear ...
4 years, 7 months ago (2016-04-27 17:48:17 UTC) #5
henrika (OOO until Aug 14)
Sorry Dale, my bad. I looked at the default values only and did not account ...
4 years, 7 months ago (2016-04-28 07:32:36 UTC) #6
henrika (OOO until Aug 14)
LGTM Can you give some more details on how the need for this change came ...
4 years, 7 months ago (2016-04-28 07:52:54 UTC) #7
DaleCurtis
https://codereview.chromium.org/1921963004/diff/40001/media/audio/android/opensles_util.cc File media/audio/android/opensles_util.cc (right): https://codereview.chromium.org/1921963004/diff/40001/media/audio/android/opensles_util.cc#newcode21 media/audio/android/opensles_util.cc:21: SLuint32 ChannelCountToSLESChannelMask(int channel_count) { On 2016/04/28 at 07:52:54, henrika ...
4 years, 7 months ago (2016-04-28 17:27:26 UTC) #8
henrika (OOO until Aug 14)
https://codereview.chromium.org/1921963004/diff/40001/media/audio/android/opensles_util.cc File media/audio/android/opensles_util.cc (right): https://codereview.chromium.org/1921963004/diff/40001/media/audio/android/opensles_util.cc#newcode21 media/audio/android/opensles_util.cc:21: SLuint32 ChannelCountToSLESChannelMask(int channel_count) { Thanks. Just hope it works ...
4 years, 7 months ago (2016-04-29 07:46:31 UTC) #9
DaleCurtis
Okay this is ready to go; disabled on KitKat since none of the devices I ...
4 years, 7 months ago (2016-05-02 19:35:11 UTC) #11
DaleCurtis
tsunghung@ did you have any commentary to add?
4 years, 7 months ago (2016-05-02 19:35:24 UTC) #12
DaleCurtis
tsunghung@ and I spoke via chat, all good to go here. CQ'ing.
4 years, 7 months ago (2016-05-02 21:43:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921963004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921963004/60001
4 years, 7 months ago (2016-05-02 21:44:32 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-02 23:35:33 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 23:36:50 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/48c1c49bc3646cf90a59ad90260a43ff23001bf1
Cr-Commit-Position: refs/heads/master@{#391095}

Powered by Google App Engine
This is Rietveld 408576698