From: aknudsen Date: Sun, 30 Mar 2008 21:02:09 +0000 (+0000) Subject: Order Unix host api initializers depending on whether we're on Linux X-Git-Tag: svn/1415~34 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=bf2d5d7e6b5375e4162cb9b87559a042c5e7bee9;p=portaudio Order Unix host api initializers depending on whether we're on Linux --- 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