From: rossb Date: Fri, 4 Mar 2011 04:12:08 +0000 (+0000) Subject: support building skeleton host api on windows X-Git-Tag: pa_stable_v19_20110326_r1647~13 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=2fb11cbabde75d7aa2f12b791273653492497a3f;p=portaudio support building skeleton host api on windows --- diff --git a/src/common/pa_hostapi.h b/src/common/pa_hostapi.h index 4495097..dda0f27 100644 --- a/src/common/pa_hostapi.h +++ b/src/common/pa_hostapi.h @@ -60,6 +60,13 @@ The code below ensures that PA_USE_* macros are always defined and have value are defaulted to 1. */ +#ifndef PA_USE_SKELETON +#define PA_USE_SKELETON 0 +#elif (PA_USE_SKELETON != 0) && (PA_USE_SKELETON != 1) +#undef PA_USE_SKELETON +#define PA_USE_SKELETON 1 +#endif + #if defined(PA_NO_ASIO) || defined(PA_NO_DS) || defined(PA_NO_WMME) || defined(PA_NO_WASAPI) || defined(PA_NO_WDMKS) #error "Portaudio: PA_NO_ is no longer supported, please remove definition and use PA_USE_ instead" #endif diff --git a/src/os/win/pa_win_hostapis.c b/src/os/win/pa_win_hostapis.c index 7deafa1..22f60ab 100644 --- a/src/os/win/pa_win_hostapis.c +++ b/src/os/win/pa_win_hostapis.c @@ -64,6 +64,10 @@ PaError PaWasapi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiInd PaUtilHostApiInitializer *paHostApiInitializers[] = { +#if PA_USE_SKELETON + PaSkeleton_Initialize, /* just for testing */ +#endif + #if PA_USE_WMME PaWinMme_Initialize, #endif @@ -84,8 +88,6 @@ PaUtilHostApiInitializer *paHostApiInitializers[] = PaWinWdm_Initialize, #endif - //PaSkeleton_Initialize, /* just for testing */ - 0 /* NULL terminated array */ };