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

Issue 11529012: Use the device listener in Media on windows (Closed)

Created:
8 years ago by no longer working on chromium
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

This patch will use the device listener in media to monitor audio capture device changed. The reasons for doing this include: # when using the device notification from content/browser, the notification comes before the device is fully initialized, so the change won't show up in the following device enumeration. # I saw a serious crash by plugging in or unplugging an audio device, I believe it is because some racing between two notifications, if this is the case, this patch should fix it. BUG=160872, 165147 TEST=manual test by plugging and unplugging device, look at the device selection menu in content setting media. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173350

Patch Set 1 #

Total comments: 4

Patch Set 2 : used media::CoreAudioUtil::IsSupported() #

Total comments: 14

Patch Set 3 : addressed Tommi's comments #

Patch Set 4 : addressed Tommi's offline comment to use only the statechange callback. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -155 lines) Patch
M content/browser/system_message_window_win.cc View 1 2 1 chunk +162 lines, -155 lines 0 comments Download
M media/audio/win/audio_device_listener_win.cc View 1 2 3 2 chunks +8 lines, -0 lines 1 comment Download

Messages

Total messages: 27 (0 generated)
no longer working on chromium
Dale, could you please review this? BR, SX
8 years ago (2012-12-11 17:17:00 UTC) #1
DaleCurtis
Hmm, the device listener changes seem reasonable. I'm not familiar with the system monitor though. ...
8 years ago (2012-12-11 19:27:58 UTC) #2
no longer working on chromium
Avi, could you please review the content/browser code? Right now we have two audio device ...
8 years ago (2012-12-11 20:15:49 UTC) #3
Avi (use Gerrit)
I am not a windows guy. I am willing to stamp when you have an ...
8 years ago (2012-12-11 20:26:51 UTC) #4
no longer working on chromium
Tommi, could you please review the content/browser windows code? Thanks, SX https://codereview.chromium.org/11529012/diff/1/content/browser/system_message_window_win.cc File content/browser/system_message_window_win.cc (right): ...
8 years ago (2012-12-12 10:17:16 UTC) #5
tommi (sloooow) - chröme
https://codereview.chromium.org/11529012/diff/1/content/browser/system_message_window_win.cc File content/browser/system_message_window_win.cc (right): https://codereview.chromium.org/11529012/diff/1/content/browser/system_message_window_win.cc#newcode57 content/browser/system_message_window_win.cc:57: if (IsCoreAudioSupported() && On 2012/12/12 10:17:16, xians1 wrote: > ...
8 years ago (2012-12-12 13:01:09 UTC) #6
no longer working on chromium
Tommi and Henrik helped me fix the compiling error, now it is using CoreAudioUtil::IsSupported(). Please ...
8 years ago (2012-12-13 10:54:24 UTC) #7
tommi (sloooow) - chröme
https://codereview.chromium.org/11529012/diff/7001/content/browser/system_message_window_win.cc File content/browser/system_message_window_win.cc (right): https://codereview.chromium.org/11529012/diff/7001/content/browser/system_message_window_win.cc#newcode17 content/browser/system_message_window_win.cc:17: no need for these whitespace changes. https://codereview.chromium.org/11529012/diff/7001/content/browser/system_message_window_win.cc#newcode50 content/browser/system_message_window_win.cc:50: // ...
8 years ago (2012-12-13 13:16:58 UTC) #8
no longer working on chromium
Tommi, please take a second look. https://codereview.chromium.org/11529012/diff/7001/content/browser/system_message_window_win.cc File content/browser/system_message_window_win.cc (right): https://codereview.chromium.org/11529012/diff/7001/content/browser/system_message_window_win.cc#newcode17 content/browser/system_message_window_win.cc:17: On 2012/12/13 13:16:58, ...
8 years ago (2012-12-13 14:54:58 UTC) #9
no longer working on chromium
Hi Dale and Avi, I might have to sign off early tomorrow, can I have ...
8 years ago (2012-12-13 17:16:30 UTC) #10
DaleCurtis
media/ lgtm.
8 years ago (2012-12-13 18:38:15 UTC) #11
Avi (use Gerrit)
On 2012/12/13 18:38:15, DaleCurtis wrote: > media/ lgtm. When you have their OK, you have ...
8 years ago (2012-12-13 19:13:12 UTC) #12
no longer working on chromium
Tommi, please take another look.
8 years ago (2012-12-14 14:05:38 UTC) #13
tommi (sloooow) - chröme
lgtm
8 years ago (2012-12-14 14:06:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/11529012/19002
8 years ago (2012-12-14 14:08:19 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 15:49:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/11529012/19002
8 years ago (2012-12-14 16:08:27 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 20:43:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/11529012/19002
8 years ago (2012-12-14 20:47:32 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 03:10:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/11529012/19002
8 years ago (2012-12-15 06:16:59 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 11:10:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/11529012/19002
8 years ago (2012-12-15 11:51:00 UTC) #23
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 16:10:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/11529012/19002
8 years ago (2012-12-15 22:02:56 UTC) #25
commit-bot: I haz the power
Change committed as 173350
8 years ago (2012-12-16 00:45:52 UTC) #26
henrika (OOO until Aug 14)
8 years ago (2012-12-17 08:20:17 UTC) #27
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/11529012/diff/19002/media/audio/win/au...
File media/audio/win/audio_device_listener_win.cc (right):

https://chromiumcodereview.appspot.com/11529012/diff/19002/media/audio/win/au...
media/audio/win/audio_device_listener_win.cc:110:
monitor->ProcessDevicesChanged(base::SystemMonitor::DEVTYPE_AUDIO_CAPTURE);
How do you know that we are dealing with a capture device here?

Powered by Google App Engine
This is Rietveld 408576698