support building skeleton host api on windows
This commit is contained in:
parent
c9322dac96
commit
2fb11cbabd
2 changed files with 11 additions and 2 deletions
|
|
@ -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_<APINAME> is no longer supported, please remove definition and use PA_USE_<APINAME> instead"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue