]> Repos - portaudio/commitdiff
support building skeleton host api on windows
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 4 Mar 2011 04:12:08 +0000 (04:12 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 4 Mar 2011 04:12:08 +0000 (04:12 +0000)
src/common/pa_hostapi.h
src/os/win/pa_win_hostapis.c

index 4495097e911d15a58a4970869b62a761020df399..dda0f2786a9d9f951275821efb427f14c453fe81 100644 (file)
@@ -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
index 7deafa1813c1988538a43ab7b37f5ee61b2c8a84..22f60ab5a6301303488ba5b10e16a6b1207452cb 100644 (file)
@@ -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 */
     };