summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-02-20 12:47:03 +0000
committerPierre Ossman <ossman@cendio.se>2006-02-20 12:47:03 +0000
commit6c2d414e5879dccff78ebf1cb155fd1809fc785a (patch)
tree761d250045be036b69b07a8ef0e436791c53b58a
parentd1bc972e6955601836c476093cb07ba961e51738 (diff)
Detect support for Windows' waveout.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@517 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/modules/module-detect.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modules/module-detect.c b/src/modules/module-detect.c
index 4c0cdb4b..718b2eb4 100644
--- a/src/modules/module-detect.c
+++ b/src/modules/module-detect.c
@@ -199,6 +199,19 @@ static int detect_solaris(pa_core *c, int just_one) {
}
#endif
+#ifdef OS_IS_WIN32
+static int detect_waveout(pa_core *c, int just_one) {
+ /*
+ * FIXME: No point in enumerating devices until the plugin supports
+ * selecting anything but the first.
+ */
+ if (!pa_module_load(c, "module-waveout", ""))
+ return 0;
+
+ return 1;
+}
+#endif
+
int pa__init(pa_core *c, pa_module*m) {
int just_one = 0, n = 0;
pa_modargs *ma;
@@ -230,6 +243,9 @@ int pa__init(pa_core *c, pa_module*m) {
#if HAVE_SOLARIS
if ((n = detect_solaris(c, just_one)) <= 0)
#endif
+#if OS_IS_WIN32
+ if ((n = detect_waveout(c, just_one)) <= 0)
+#endif
{
pa_log_warn(__FILE__": failed to detect any sound hardware.\n");
goto fail;