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

Issue 510073002: Reland 501823002: Used native deinterleaved and float point format for the input streams (Closed)

Created:
6 years, 3 months ago by no longer working on chromium
Modified:
6 years, 3 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Used 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -135 lines) Patch
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 5 chunks +12 lines, -7 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 3 17 chunks +125 lines, -96 lines 0 comments Download
M media/base/audio_block_fifo.h View 2 chunks +7 lines, -0 lines 0 comments Download
M media/base/audio_block_fifo.cc View 3 chunks +38 lines, -8 lines 0 comments Download
M media/base/audio_block_fifo_unittest.cc View 6 chunks +45 lines, -24 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
no longer working on chromium
xians@chromium.org changed reviewers: + dalecurtis@chromium.org
6 years, 3 months ago (2014-08-27 19:39:58 UTC) #1
no longer working on chromium
Patchset #2 (id:20001) has been deleted
6 years, 3 months ago (2014-08-27 19:41:37 UTC) #2
no longer working on chromium
Hi Dale, this is a reland of https://codereview.chromium.org/501823002, the differences between this new version and ...
6 years, 3 months ago (2014-08-27 19:47:25 UTC) #3
no longer working on chromium
The CQ bit was checked by xians@chromium.org
6 years, 3 months ago (2014-08-27 19:47:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/510073002/40001
6 years, 3 months ago (2014-08-27 19:48:30 UTC) #5
DaleCurtis
https://codereview.chromium.org/510073002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/510073002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc#newcode87 media/audio/mac/audio_low_latency_input_mac.cc:87: malloc(sizeof(AudioBufferList) * input_params.channels()))); This will oversize the buffer slightly, ...
6 years, 3 months ago (2014-08-27 20:22:52 UTC) #6
DaleCurtis
lgtm
6 years, 3 months ago (2014-08-27 20:22:56 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 21:03:00 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 21:37:07 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/7682)
6 years, 3 months ago (2014-08-27 21:37:08 UTC) #10
no longer working on chromium
The CQ bit was checked by xians@chromium.org
6 years, 3 months ago (2014-08-28 16:10:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/510073002/60001
6 years, 3 months ago (2014-08-28 16:12:05 UTC) #12
no longer working on chromium
Thanks, I am going to land it soon. https://codereview.chromium.org/510073002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/510073002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc#newcode87 media/audio/mac/audio_low_latency_input_mac.cc:87: malloc(sizeof(AudioBufferList) ...
6 years, 3 months ago (2014-08-28 16:12:20 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-28 17:17:34 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 18:00:09 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/8083)
6 years, 3 months ago (2014-08-28 18:00:10 UTC) #16
no longer working on chromium
The CQ bit was checked by xians@chromium.org
6 years, 3 months ago (2014-08-29 13:07:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/510073002/80001
6 years, 3 months ago (2014-08-29 13:08:18 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel_swarming on tryserver.chromium.win ...
6 years, 3 months ago (2014-08-29 14:13:47 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:80001) as 2c732c000e18a6decd1da8da24e1f5f9e5f16833
6 years, 3 months ago (2014-08-29 15:17:35 UTC) #20
no longer working on chromium
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/532303002/ by xians@chromium.org. ...
6 years, 3 months ago (2014-09-03 16:44:06 UTC) #21
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:08:45 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ebae1d3f36f0139ed578e36e21e8ac372e9424f6
Cr-Commit-Position: refs/heads/master@{#292636}

Powered by Google App Engine
This is Rietveld 408576698