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

Unified Diff: media/audio/win/audio_manager_win.h

Issue 155863003: Add basic support for "googDucking" to getUserMedia on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize enumeration flag in constructor Created 6 years, 10 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_output_win_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_manager_win.h
diff --git a/media/audio/win/audio_manager_win.h b/media/audio/win/audio_manager_win.h
index c2ac8d7a1c8bbebfab45a864f885c899a0bc1893..1bbfc23fddbd4f731405e0577558b489101a4050 100644
--- a/media/audio/win/audio_manager_win.h
+++ b/media/audio/win/audio_manager_win.h
@@ -56,7 +56,6 @@ class MEDIA_EXPORT AudioManagerWin : public AudioManagerBase {
private:
enum EnumerationType {
- kUninitializedEnumeration = 0,
kMMDeviceEnumeration,
kWaveEnumeration,
};
@@ -70,6 +69,10 @@ class MEDIA_EXPORT AudioManagerWin : public AudioManagerBase {
enumeration_type_ = type;
}
+ inline bool core_audio_supported() const {
+ return enumeration_type_ == kMMDeviceEnumeration;
+ }
+
// Returns a PCMWaveInAudioInputStream instance or NULL on failure.
// This method converts MMDevice-style device ID to WaveIn-style device ID if
// necessary.
« no previous file with comments | « media/audio/win/audio_low_latency_output_win_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698