|
PortAudio
2.0
|
Implements log function. More...
Macros | |
| #define | VSNPRINTF vsnprintf |
| #define | PA_LOG_BUF_SIZE 2048 |
Functions | |
| void | PaUtil_SetDebugPrintFunction (PaUtilLogCallback cb) |
| void | PaUtil_DebugPrint (const char *format,...) |
Implements log function.
PaUtil_SetLogPrintFunction can be user called to replace the provided DefaultLogPrint function, which writes to stderr. One can NOT pass var_args across compiler/dll boundaries as it is not "byte code/abi portable". So the technique used here is to allocate a local a static array, write in it, then callback the user with a pointer to its start.
| #define PA_LOG_BUF_SIZE 2048 |
Referenced by PaUtil_DebugPrint().
| #define VSNPRINTF vsnprintf |
Referenced by PaUtil_DebugPrint().
| void PaUtil_DebugPrint | ( | const char * | format, |
| ... | |||
| ) |
References PA_LOG_BUF_SIZE, and VSNPRINTF.
| void PaUtil_SetDebugPrintFunction | ( | PaUtilLogCallback | cb | ) |
Install user provided log function
1.8.5