PortAudio
2.0
|
Go to the source code of this file.
Macros | |
#define | PA_DEBUG(x) |
#define | PA_LOGAPI(x) |
#define | PA_LOGAPI_ENTER(functionName) |
#define | PA_LOGAPI_ENTER_PARAMS(functionName) |
#define | PA_LOGAPI_EXIT(functionName) |
#define | PA_LOGAPI_EXIT_PAERROR(functionName, result) |
#define | PA_LOGAPI_EXIT_T(functionName, resultFormatString, result) |
#define | PA_LOGAPI_EXIT_PAERROR_OR_T_RESULT(functionName, positiveResultFormatString, result) |
Typedefs | |
typedef void(* | PaUtilLogCallback )(const char *log) |
Functions | |
void | PaUtil_DebugPrint (const char *format,...) |
void | PaUtil_SetDebugPrintFunction (PaUtilLogCallback cb) |
#define PA_DEBUG | ( | x | ) |
PA_DEBUG() provides a simple debug message printing facility. The macro passes it's argument to a printf-like function called PaUtil_DebugPrint() which prints to stderr and always flushes the stream after printing. Because preprocessor macros cannot directly accept variable length argument lists, calls to the macro must include an additional set of parenthesis, eg: PA_DEBUG(("errorno: %d", 1001 ));
Referenced by AsioSampleTypeLOG(), PaAsiHpi_Initialize(), PaAsio_Initialize(), PaAsio_ShowControlPanel(), PaJack_Initialize(), PaUnixThread_New(), PaUnixThread_Terminate(), PaWinDs_InitializeDSoundEntryPoints(), PaWinUtil_CoInitialize(), PaWinUtil_CoUninitialize(), and ProcessingThread().
#define PA_LOGAPI | ( | x | ) |
Referenced by Pa_AbortStream(), Pa_CloseStream(), Pa_GetDeviceInfo(), Pa_GetHostApiInfo(), Pa_GetSampleSize(), Pa_GetStreamCpuLoad(), Pa_GetStreamInfo(), Pa_GetStreamReadAvailable(), Pa_GetStreamTime(), Pa_GetStreamWriteAvailable(), Pa_HostApiDeviceIndexToDeviceIndex(), Pa_HostApiTypeIdToHostApiIndex(), Pa_IsFormatSupported(), Pa_IsStreamActive(), Pa_IsStreamStopped(), Pa_OpenDefaultStream(), Pa_OpenStream(), Pa_ReadStream(), Pa_SetStreamFinishedCallback(), Pa_StartStream(), Pa_StopStream(), and Pa_WriteStream().
#define PA_LOGAPI_ENTER | ( | functionName | ) |
#define PA_LOGAPI_ENTER_PARAMS | ( | functionName | ) |
Referenced by Pa_AbortStream(), Pa_CloseStream(), Pa_GetDeviceInfo(), Pa_GetHostApiInfo(), Pa_GetSampleSize(), Pa_GetStreamCpuLoad(), Pa_GetStreamInfo(), Pa_GetStreamReadAvailable(), Pa_GetStreamTime(), Pa_GetStreamWriteAvailable(), Pa_HostApiDeviceIndexToDeviceIndex(), Pa_HostApiTypeIdToHostApiIndex(), Pa_IsFormatSupported(), Pa_IsStreamActive(), Pa_IsStreamStopped(), Pa_OpenDefaultStream(), Pa_OpenStream(), Pa_ReadStream(), Pa_SetStreamFinishedCallback(), Pa_StartStream(), Pa_StopStream(), and Pa_WriteStream().
#define PA_LOGAPI_EXIT | ( | functionName | ) |
#define PA_LOGAPI_EXIT_PAERROR | ( | functionName, | |
result | |||
) |
#define PA_LOGAPI_EXIT_PAERROR_OR_T_RESULT | ( | functionName, | |
positiveResultFormatString, | |||
result | |||
) |
#define PA_LOGAPI_EXIT_T | ( | functionName, | |
resultFormatString, | |||
result | |||
) |
Referenced by Pa_GetDefaultInputDevice(), and Pa_GetDefaultOutputDevice().
typedef void(* PaUtilLogCallback)(const char *log) |
void PaUtil_DebugPrint | ( | const char * | format, |
... | |||
) |
References PA_LOG_BUF_SIZE, and VSNPRINTF.
void PaUtil_SetDebugPrintFunction | ( | PaUtilLogCallback | cb | ) |
Install user provided log function