summaryrefslogtreecommitdiffstats
path: root/media/audio/win/audio_output_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/audio/win/audio_output_win.cc')
-rw-r--r--media/audio/win/audio_output_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/audio/win/audio_output_win.cc b/media/audio/win/audio_output_win.cc
index 5685ee7..6003fcd 100644
--- a/media/audio/win/audio_output_win.cc
+++ b/media/audio/win/audio_output_win.cc
@@ -89,6 +89,11 @@ void ReplaceLastMockStream(AudioOutputStreamMockWin* newer) {
} // namespace.
+
+bool AudioManagerWin::HasAudioDevices() {
+ return (::waveOutGetNumDevs() != 0);
+}
+
// Factory for the implementations of AudioOutputStream. Two implementations
// should suffice most windows user's needs.
// - PCMWaveOutAudioOutputStream: Based on the waveOutWrite API (in progress)