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

Issue 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:
eroman, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
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. 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/c72c70da1229625cb54ecf683a909f173043d5b1 Cr-Commit-Position: refs/heads/master@{#292151}

Patch Set 1 #

Patch Set 2 : minor format changes #

Total comments: 20

Patch Set 3 : addressed the comments. #

Patch Set 4 : fixed the comments and avoided wrapping the memory in each callback #

Patch Set 5 : added a CHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -138 lines) Patch
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 5 chunks +11 lines, -10 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 3 4 16 chunks +104 lines, -96 lines 0 comments Download
M media/base/audio_block_fifo.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M media/base/audio_block_fifo.cc View 1 2 3 chunks +38 lines, -8 lines 0 comments Download
M media/base/audio_block_fifo_unittest.cc View 1 2 6 chunks +45 lines, -24 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
no longer working on chromium
Hi Dale, this CL makes the input code on Mac to use the native format: ...
6 years, 3 months ago (2014-08-24 14:42:30 UTC) #1
DaleCurtis
I don't really follow why the input format is flipping back and forth, can you ...
6 years, 3 months ago (2014-08-25 17:42:24 UTC) #2
no longer working on chromium
Dale, please take another look. https://codereview.chromium.org/501823002/diff/20001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/501823002/diff/20001/media/audio/mac/audio_low_latency_input_mac.cc#newcode45 media/audio/mac/audio_low_latency_input_mac.cc:45: for (int i = ...
6 years, 3 months ago (2014-08-26 09:39:52 UTC) #3
DaleCurtis
lgtm % comments. https://codereview.chromium.org/501823002/diff/20001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/501823002/diff/20001/media/audio/mac/audio_low_latency_input_mac.cc#newcode75 media/audio/mac/audio_low_latency_input_mac.cc:75: format_.mFormatFlags = On 2014/08/26 09:39:52, xians1 ...
6 years, 3 months ago (2014-08-26 18:51:55 UTC) #4
no longer working on chromium
Thanks Dale, I have already addressed all your comments and did one more minor improvement ...
6 years, 3 months ago (2014-08-27 12:22:10 UTC) #5
no longer working on chromium
The CQ bit was checked by xians@chromium.org
6 years, 3 months ago (2014-08-27 12:22:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/501823002/80001
6 years, 3 months ago (2014-08-27 12:22:59 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 14:09:24 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (80001) as 1a9ce977642c7f2cc2e30d83757c42264f052f0b
6 years, 3 months ago (2014-08-27 14:44:53 UTC) #9
eroman
eroman@chromium.org changed reviewers: + eroman@chromium.org
6 years, 3 months ago (2014-08-27 17:13:24 UTC) #10
eroman
There are some failures on mac asan bot, could it be from this changelist? http://build.chromium.org/p/chromium.memory/buildstatus?builder=Mac%20ASan%2064%20Tests%20%281%29&number=1976
6 years, 3 months ago (2014-08-27 17:13:24 UTC) #11
no longer working on chromium
On 2014/08/27 17:13:24, eroman wrote: > There are some failures on mac asan bot, could ...
6 years, 3 months ago (2014-08-27 17:19:33 UTC) #12
no longer working on chromium
A revert of this CL (patchset #5) has been created in https://codereview.chromium.org/514773002/ by xians@chromium.org. The ...
6 years, 3 months ago (2014-08-27 17:26:47 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:51:39 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c72c70da1229625cb54ecf683a909f173043d5b1
Cr-Commit-Position: refs/heads/master@{#292151}

Powered by Google App Engine
This is Rietveld 408576698