DescriptionUsed native deinterleaved and float point format for the input streams.
If we call GetProperty of kAudioUnitProperty_StreamFormat before setting the format, the device will report kAudioFormatFlagsNativeFloatPacked | kLinearPCMFormatFlagIsNonInterleaved as the native format of the device, which is the same as the output.
This patch changes the format to use kAudioFormatFlagsNativeFloatPacked | kLinearPCMFormatFlagIsNonInterleaved to open the device, so that we will avoid format flipping back and forth. Hope this optimization will help increase the stability of the input audio on Mac.
TBR=DaleCurtis@chromium.org
BUG=404884
TEST=media_unittests && https://webrtc.googlecode.com/svn-history/r5497/trunk/samples/js/demos/html/pc1.html, https://www.google.com/intl/en/chrome/demos/speech.html
Committed: https://crrev.com/ebae1d3f36f0139ed578e36e21e8ac372e9424f6
Cr-Commit-Position: refs/heads/master@{#292636}
Patch Set 1 #Patch Set 2 : switched to AudioBus wrapper and fixed Mac ASan 64b bot #
Total comments: 2
Patch Set 3 : fixed the mac_chromium_rel_swarming bot #Patch Set 4 : uint8 -> float #
Messages
Total messages: 22 (0 generated)
|