46 #include "CADebugPrintf.h"
48 #if DEBUG || CoreAudio_Debug
55 int CAWin32DebugPrintf(
char* inFormat, ...)
57 char theMessage[1024];
59 va_start(theArguments, inFormat);
60 _vsnprintf(theMessage, 1024, inFormat, theArguments);
62 OutputDebugString(theMessage);
67 #if defined(CoreAudio_UseSideFile)
69 FILE* sDebugPrintfSideFile = NULL;
71 void OpenDebugPrintfSideFile()
73 if(sDebugPrintfSideFile == NULL)
75 char theFileName[1024];
76 snprintf(theFileName,
sizeof(theFileName), CoreAudio_UseSideFile, getpid());
77 sDebugPrintfSideFile = fopen(theFileName,
"a+");
78 DebugPrintfRtn(DebugPrintfFileComma
"\n------------------------------\n");