From bf2d5d7e6b5375e4162cb9b87559a042c5e7bee9 Mon Sep 17 00:00:00 2001 From: aknudsen Date: Sun, 30 Mar 2008 21:02:09 +0000 Subject: [PATCH] Order Unix host api initializers depending on whether we're on Linux --- src/os/unix/pa_unix_hostapis.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/os/unix/pa_unix_hostapis.c b/src/os/unix/pa_unix_hostapis.c index 68c9969..0525f5f 100644 --- a/src/os/unix/pa_unix_hostapis.c +++ b/src/os/unix/pa_unix_hostapis.c @@ -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 -- 2.43.0