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

Issue 2695633006: Use preferred channel layout on macOS instead of total channel count. (Closed)

Created:
3 years, 10 months ago by DaleCurtis
Modified:
3 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use preferred channel layout on macOS instead of total channel count. The old GetDeviceChannels() method returns the total number of channels on a device, not necessarily how many its configured to use. For devices which allocate ranges of channels to different behaviors (mirroring, etc) this is completely broken. Instead use kAudioDevicePropertyPreferredChannelLayout, which seems to give us the right information in both the input and output cases. This sometimes requires us to make an additional call to convert the given information into something we can easily parse. BUG=671308 TEST=manual; configure 6 channel virtual device as stereo. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2695633006 Cr-Commit-Position: refs/heads/master@{#453023} Committed: https://chromium.googlesource.com/chromium/src/+/d0beea4e2d9c11e6ab4f94eea91c4b6b87104a56

Patch Set 1 #

Patch Set 2 : Fix discrete layouts. #

Patch Set 3 : Fix compilation issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -24 lines) Patch
M media/audio/mac/audio_manager_mac.cc View 1 2 2 chunks +100 lines, -24 lines 0 comments Download
M media/base/channel_layout.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/channel_layout.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
DaleCurtis
+hongchan again for review. I've tested this with a virtual 5.1 device, but it'd be ...
3 years, 10 months ago (2017-02-16 00:29:01 UTC) #3
DaleCurtis
+tommi too since this affects the input side too, but should only be a positive ...
3 years, 10 months ago (2017-02-16 04:17:42 UTC) #9
tommi (sloooow) - chröme
lgtm CF
3 years, 10 months ago (2017-02-16 19:38:25 UTC) #10
tommi (sloooow) - chröme
On 2017/02/16 19:38:25, tommi (krómíum) wrote: > lgtm > > CF Ugh, my virtual keyboard ...
3 years, 10 months ago (2017-02-16 19:39:15 UTC) #11
hongchan
On 2017/02/16 19:39:15, tommi (krómíum) wrote: > On 2017/02/16 19:38:25, tommi (krómíum) wrote: > > ...
3 years, 10 months ago (2017-02-16 22:01:37 UTC) #12
DaleCurtis
On 2017/02/16 at 22:01:37, hongchan wrote: > On 2017/02/16 19:39:15, tommi (krómíum) wrote: > > ...
3 years, 10 months ago (2017-02-16 22:03:14 UTC) #13
DaleCurtis
On 2017/02/16 at 22:03:14, DaleCurtis wrote: > On 2017/02/16 at 22:01:37, hongchan wrote: > > ...
3 years, 10 months ago (2017-02-16 22:03:23 UTC) #14
hongchan
On 2017/02/16 22:03:23, DaleCurtis wrote: > On 2017/02/16 at 22:03:14, DaleCurtis wrote: > > On ...
3 years, 10 months ago (2017-02-16 22:04:05 UTC) #15
hongchan
On 2017/02/16 22:04:05, hongchan wrote: > On 2017/02/16 22:03:23, DaleCurtis wrote: > > On 2017/02/16 ...
3 years, 10 months ago (2017-02-21 19:19:26 UTC) #16
hongchan
On 2017/02/21 19:19:26, hongchan wrote: > On 2017/02/16 22:04:05, hongchan wrote: > > On 2017/02/16 ...
3 years, 10 months ago (2017-02-21 21:04:18 UTC) #17
DaleCurtis
Hmm, can you change the DVLOG(1)'s in AMMac to LOG(ERROR) and see what reported channel ...
3 years, 10 months ago (2017-02-21 21:22:51 UTC) #18
hongchan
On 2017/02/21 21:22:51, DaleCurtis wrote: > Hmm, can you change the DVLOG(1)'s in AMMac to ...
3 years, 10 months ago (2017-02-23 18:11:22 UTC) #19
DaleCurtis
hongchan@ verified offline that this is now working correctly after http://crrev.com/452672 so sending to the ...
3 years, 10 months ago (2017-02-24 22:36:30 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695633006/40001
3 years, 10 months ago (2017-02-24 22:37:12 UTC) #23
hongchan
late lgtm. Thanks for this fix!
3 years, 10 months ago (2017-02-24 23:05:20 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 00:46:31 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d0beea4e2d9c11e6ab4f94eea91c...

Powered by Google App Engine
This is Rietveld 408576698