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

Issue 11338024: Handle audio device changes on Mac (Take 2). (Closed)

Created:
8 years, 1 month ago by DaleCurtis
Modified:
8 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, Scott Hess - ex-Googler
Visibility:
Public.

Description

Handle audio device changes on Mac (Take 2). Takeover from sail's CL. I've uploaded his patch set #9 as the base ("Original") for this CL for comparison; https://codereview.chromium.org/11344005/ This is the Mac version of this Windows CL: https://codereview.chromium.org/11233023/ Essentially we now listen for default device changes (including things like modifying the sample rate) and then forward those calls through the AudioManager::AudioDeviceListener framework. BUG=156788 TEST=Keep audio stream playing while changing devices through Audio MIDI Setup. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165597

Patch Set 1 : Original #

Patch Set 2 : Pass callback directly. #

Total comments: 13

Patch Set 3 : Collapse! #

Total comments: 6

Patch Set 4 : Naming, comment removal. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -5 lines) Patch
M media/audio/mac/audio_low_latency_output_mac.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 3 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
DaleCurtis
scherkus, crogers: Please review. sail, shess: FYI. Per discussion with scherkus there's no point in ...
8 years, 1 month ago (2012-10-30 01:34:45 UTC) #1
scherkus (not reviewing)
http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc File media/audio/mac/audio_device_listener_mac.cc (right): http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc#newcode54 media/audio/mac/audio_device_listener_mac.cc:54: if (!listener_cb_) you can use is_null() instead since you ...
8 years, 1 month ago (2012-10-31 23:17:22 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc File media/audio/mac/audio_device_listener_mac.cc (right): http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc#newcode28 media/audio/mac/audio_device_listener_mac.cc:28: static_cast<base::Closure*>(context)->Run(); If you've arranged for the callback to live ...
8 years, 1 month ago (2012-10-31 23:39:11 UTC) #3
scherkus (not reviewing)
http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc File media/audio/mac/audio_device_listener_mac.cc (right): http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc#newcode28 media/audio/mac/audio_device_listener_mac.cc:28: static_cast<base::Closure*>(context)->Run(); On 2012/10/31 23:39:11, shess wrote: > If you've ...
8 years, 1 month ago (2012-11-01 00:15:40 UTC) #4
DaleCurtis
<just comments> http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc File media/audio/mac/audio_device_listener_mac.cc (right): http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.cc#newcode28 media/audio/mac/audio_device_listener_mac.cc:28: static_cast<base::Closure*>(context)->Run(); On 2012/10/31 23:39:11, shess wrote: > ...
8 years, 1 month ago (2012-11-01 00:16:33 UTC) #5
scherkus (not reviewing)
http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.h File media/audio/mac/audio_device_listener_mac.h (right): http://codereview.chromium.org/11338024/diff/11001/media/audio/mac/audio_device_listener_mac.h#newcode29 media/audio/mac/audio_device_listener_mac.h:29: base::Closure* listener_cb_; On 2012/11/01 00:16:33, DaleCurtis wrote: > On ...
8 years, 1 month ago (2012-11-01 00:47:48 UTC) #6
Scott Hess - ex-Googler
Hmm. On 2012/11/01 00:15:40, scherkus wrote: > I certainly hope AudioObjectRemovePropertyListener() guarantees that any > ...
8 years, 1 month ago (2012-11-01 00:50:25 UTC) #7
DaleCurtis
On 2012/11/01 00:50:25, shess wrote: > Hmm. > > On 2012/11/01 00:15:40, scherkus wrote: > ...
8 years, 1 month ago (2012-11-01 01:08:29 UTC) #8
scherkus (not reviewing)
LGTM w/ nits lol'ing at how small, then large, then small, then exceedingly small this ...
8 years, 1 month ago (2012-11-01 01:20:14 UTC) #9
DaleCurtis
Yeah, this has been a rather round-a-bout CL unfortunately. Almost there though :) http://codereview.chromium.org/11338024/diff/17001/media/audio/mac/audio_manager_mac.cc File ...
8 years, 1 month ago (2012-11-01 01:28:17 UTC) #10
Scott Hess - ex-Googler
lgtm - I like this better than anything prior. This code already is making all ...
8 years, 1 month ago (2012-11-01 03:21:18 UTC) #11
DaleCurtis
sail: can you elaborate on the AudioComponent changes? I assume they are for a related ...
8 years, 1 month ago (2012-11-01 04:32:42 UTC) #12
sail
On 2012/11/01 04:32:42, DaleCurtis wrote: > sail: can you elaborate on the AudioComponent changes? I ...
8 years, 1 month ago (2012-11-01 22:32:41 UTC) #13
Chris Rogers
lgtm
8 years, 1 month ago (2012-11-01 23:20:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/11338024/20001
8 years, 1 month ago (2012-11-01 23:21:50 UTC) #15
commit-bot: I haz the power
8 years, 1 month ago (2012-11-02 02:45:19 UTC) #16
Change committed as 165597

Powered by Google App Engine
This is Rietveld 408576698