#include <mmdeviceapi.h>
#include <devicetopology.h> // Used to get IKsJackDescription interface
#undef INITGUID
+// Visual Studio 2010 does not support the inline keyword
+#if (_MSC_VER <= 1600)
+ #define inline _inline
+#endif
#endif
#ifndef __MWERKS__
#include <malloc.h>
if (paWasapi->deviceCount != 0)
{
+ UINT32 i;
UINT32 deviceCount = paWasapi->deviceCount;
#if defined(PA_WASAPI_MAX_CONST_DEVICE_COUNT) && (PA_WASAPI_MAX_CONST_DEVICE_COUNT > 0)
if (deviceCount < PA_WASAPI_MAX_CONST_DEVICE_COUNT)
{
return NULL;
}
- for (UINT32 i = 0; i < deviceCount; ++i)
+ for (i = 0; i < deviceCount; ++i)
hostApi->deviceInfos[i] = NULL;
// Allocate all device info structs in a contiguous block
UINT32 sleepTime)
{
INT32 nextSleepTime;
+ INT32 procTime;
// Get next sleep time
if (sleepTime == 0)
//
// [9],{2},[8],{1},[9],{1},[9],{3},[7],{2},[8],{3},[7],{2},[8],{2},[8],{3},[7],{2},[8],...
//
- INT32 procTime = (INT32)(SystemTimer_GetTime(timer) - startTime);
+ procTime = (INT32)(SystemTimer_GetTime(timer) - startTime);
nextSleepTime -= procTime;
if (nextSleepTime < timer->granularity)
nextSleepTime = 0;