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

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

Issue 2144333002: MuteSource Audio During Full Screen Cast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/win/audio_low_latency_input_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/core_audio_util_win.cc
diff --git a/media/audio/win/core_audio_util_win.cc b/media/audio/win/core_audio_util_win.cc
index d00d3608339d6497862905a013ff9542eb01ef8a..cb21af6bb8936a8e720e3032eb4f3bc8a889272c 100644
--- a/media/audio/win/core_audio_util_win.cc
+++ b/media/audio/win/core_audio_util_win.cc
@@ -747,7 +747,8 @@ HRESULT CoreAudioUtil::GetPreferredAudioParameters(const std::string& device_id,
if (device_id == AudioDeviceDescription::kDefaultDeviceId) {
device = CoreAudioUtil::CreateDefaultDevice(
is_output_device ? eRender : eCapture, eConsole);
- } else if (device_id == AudioDeviceDescription::kLoopbackInputDeviceId) {
+ } else if (device_id == AudioDeviceDescription::kLoopbackInputDeviceId ||
+ device_id == AudioDeviceDescription::kLoopbackWithMuteDeviceId) {
DCHECK(!is_output_device);
device = CoreAudioUtil::CreateDefaultDevice(eRender, eConsole);
} else if (device_id == AudioDeviceDescription::kCommunicationsDeviceId) {
« no previous file with comments | « media/audio/win/audio_low_latency_input_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698