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

Issue 13403002: Add OSX aggregate audio device support for best performance. (Closed)

Created:
7 years, 8 months ago by Chris Rogers
Modified:
7 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Add OSX aggregate audio device support for best performance. Some audio hardware is presented as separate input and output devices even though they are really the same physical hardware and share the same "clock domain" at the lowest levels of the driver. A common of example of this is the "built-in" audio hardware: "Built-in Line Input" "Built-in Output" We would like to use an "aggregate" device for these situations, since CoreAudio will make the most efficient use of the shared "clock domain" so we get the lowest latency and use fewer threads. BUG=none TEST=extensive manual testing with built-in Mac hardware http://chromium.googlecode.com/svn/trunk/samples/audio/visualizer-live.html Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194765

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 22

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -18 lines) Patch
A media/audio/mac/aggregate_device_manager.h View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A media/audio/mac/aggregate_device_manager.cc View 1 2 3 4 5 1 chunk +363 lines, -0 lines 0 comments Download
M media/audio/mac/audio_auhal_mac.cc View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 4 5 1 chunk +45 lines, -14 lines 0 comments Download
M media/audio/mac/audio_synchronized_mac.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 1 comment Download
M media/media.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Chris Rogers
7 years, 8 months ago (2013-04-01 23:37:07 UTC) #1
no longer working on chromium
https://codereview.chromium.org/13403002/diff/8001/media/audio/mac/aggregate_device_manager.cc File media/audio/mac/aggregate_device_manager.cc (right): https://codereview.chromium.org/13403002/diff/8001/media/audio/mac/aggregate_device_manager.cc#newcode107 media/audio/mac/aggregate_device_manager.cc:107: if (result != noErr) nit, simply do return (result ...
7 years, 8 months ago (2013-04-03 21:11:57 UTC) #2
DaleCurtis
Turned out not to have WiFi on the plane over, so I haven't had long ...
7 years, 8 months ago (2013-04-04 14:37:45 UTC) #3
Chris Rogers
On 2013/04/04 14:37:45, DaleCurtis wrote: > Turned out not to have WiFi on the plane ...
7 years, 8 months ago (2013-04-04 17:57:10 UTC) #4
DaleCurtis
sgtm, lets do that.
7 years, 8 months ago (2013-04-04 20:59:56 UTC) #5
Chris Rogers
PTAL dalecurtis: I now avoid re-using lazily created aggregate device if the default devices have ...
7 years, 8 months ago (2013-04-05 20:01:38 UTC) #6
DaleCurtis
You'll be removing the unified stream variant after this land right? https://codereview.chromium.org/13403002/diff/20003/media/audio/mac/aggregate_device_manager.cc File media/audio/mac/aggregate_device_manager.cc (right): ...
7 years, 8 months ago (2013-04-17 01:01:38 UTC) #7
no longer working on chromium
https://codereview.chromium.org/13403002/diff/20003/media/audio/mac/aggregate_device_manager.cc File media/audio/mac/aggregate_device_manager.cc (right): https://codereview.chromium.org/13403002/diff/20003/media/audio/mac/aggregate_device_manager.cc#newcode95 media/audio/mac/aggregate_device_manager.cc:95: OSStatus AggregateDeviceManager::GetDeviceName( nit, make it void since we don't ...
7 years, 8 months ago (2013-04-17 09:16:22 UTC) #8
Chris Rogers
PTAL - I plan to remove the unified back-end soon once this has a chance ...
7 years, 8 months ago (2013-04-17 20:42:31 UTC) #9
DaleCurtis
lgtm % nit https://codereview.chromium.org/13403002/diff/34001/media/audio/mac/audio_synchronized_mac.cc File media/audio/mac/audio_synchronized_mac.cc (right): https://codereview.chromium.org/13403002/diff/34001/media/audio/mac/audio_synchronized_mac.cc#newcode88 media/audio/mac/audio_synchronized_mac.cc:88: VLOG(1) << "AudioSynchronizedStream::AudioSynchronizedStream()"; DVLOG(1) ? The ...
7 years, 8 months ago (2013-04-17 21:37:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/crogers@google.com/13403002/34001
7 years, 8 months ago (2013-04-18 00:38:08 UTC) #11
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 04:51:57 UTC) #12
Message was sent while issue was closed.
Change committed as 194765

Powered by Google App Engine
This is Rietveld 408576698