]> Repos - portaudio/commitdiff
Order Unix host api initializers depending on whether we're on Linux
authoraknudsen <aknudsen@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 30 Mar 2008 21:02:09 +0000 (21:02 +0000)
committeraknudsen <aknudsen@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 30 Mar 2008 21:02:09 +0000 (21:02 +0000)
src/os/unix/pa_unix_hostapis.c

index 68c996917297784881ffc5cc5fd9cf26fb538c2e..0525f5f37d8d0d434360b2ed54700334294e4b69 100644 (file)
@@ -58,6 +58,8 @@ PaError PaSkeleton_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiI
 
 PaUtilHostApiInitializer *paHostApiInitializers[] =
     {
+#ifdef __linux__
+
 #ifdef PA_USE_ALSA
         PaAlsa_Initialize,
 #endif
@@ -66,6 +68,18 @@ PaUtilHostApiInitializer *paHostApiInitializers[] =
         PaOSS_Initialize,
 #endif
 
+#else
+
+#ifdef PA_USE_OSS
+        PaOSS_Initialize,
+#endif
+
+#ifdef PA_USE_ALSA
+        PaAlsa_Initialize,
+#endif
+
+#endif  /* __linux__ */
+
 #ifdef PA_USE_JACK
         PaJack_Initialize,
 #endif