Order Unix host api initializers depending on whether we're on Linux
This commit is contained in:
parent
bc1b5d028c
commit
bf2d5d7e6b
1 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue