[polypaudio-commits] r517 - /trunk/src/modules/module-detect.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Feb 20 04:47:04 PST 2006


Author: ossman
Date: Mon Feb 20 13:47:03 2006
New Revision: 517

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=517&root=polypaudio&view=rev
Log:
Detect support for Windows' waveout.

Modified:
    trunk/src/modules/module-detect.c

Modified: trunk/src/modules/module-detect.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-detect.c?rev=517&root=polypaudio&r1=516&r2=517&view=diff
==============================================================================
--- trunk/src/modules/module-detect.c (original)
+++ trunk/src/modules/module-detect.c Mon Feb 20 13:47:03 2006
@@ -199,6 +199,19 @@
 }
 #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 @@
 #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;




More information about the pulseaudio-commits mailing list