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

Unified Diff: media/audio/win/audio_device_listener_win.cc

Issue 2646423005: Remove the wave based audio capture implementation for Windows (Closed)
Patch Set: Minor cleanup + documentation Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_manager_unittest.cc ('k') | media/audio/win/audio_manager_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_device_listener_win.cc
diff --git a/media/audio/win/audio_device_listener_win.cc b/media/audio/win/audio_device_listener_win.cc
index ebe65f462b4258f56773ef6446a16da6574b53e8..2c2ecacb43202b0939bf3d414b312538fee12715 100644
--- a/media/audio/win/audio_device_listener_win.cc
+++ b/media/audio/win/audio_device_listener_win.cc
@@ -33,8 +33,8 @@ static std::string RoleToString(ERole role) {
AudioDeviceListenerWin::AudioDeviceListenerWin(const base::Closure& listener_cb)
: listener_cb_(listener_cb), tick_clock_(new base::DefaultTickClock()) {
- CHECK(CoreAudioUtil::IsSupported());
-
+ // CreateDeviceEnumerator can fail on some installations of Windows such
+ // as "Windows Server 2008 R2" where the desktop experience isn't available.
ScopedComPtr<IMMDeviceEnumerator> device_enumerator(
CoreAudioUtil::CreateDeviceEnumerator());
if (!device_enumerator.get())
« no previous file with comments | « media/audio/audio_manager_unittest.cc ('k') | media/audio/win/audio_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698