Chromium Code Reviews
DescriptionUse AudioUnit instead of AudioDevice properties to get channel count.
On some devices kAudioDevicePropertyPreferredChannelLayout is not available
or lists the channel types as unknown. kAudioUnitProperty_AudioChannelLayout
instead seems to always be set and correct, so use it instead.
To do this, I've introduced a new helper class ScopedAudioUnit which helps
with the allocation and deallocation of AudioUnits. In a followup patch set
I'll convert the input and output streams to use this new mechanism.
BUG=671308, 675787
TEST=user verified success.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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/2771093002
Cr-Commit-Position: refs/heads/master@{#460250}
Committed: https://chromium.googlesource.com/chromium/src/+/5285d00f561827da882c8faaa7bda1d571c4fc60
Patch Set 1 : Add logging header. #Patch Set 2 : Fix compile errors. #Patch Set 3 : Fix enum type. #
Total comments: 1
Patch Set 4 : Revert deletion of GetDeviceTotalChannelCount. #
Dependent Patchsets: Messages
Total messages: 21 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||