aboutsummaryrefslogtreecommitdiff
path: root/pd/portaudio/pa_common/pa_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/portaudio/pa_common/pa_trace.c')
-rw-r--r--pd/portaudio/pa_common/pa_trace.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/pd/portaudio/pa_common/pa_trace.c b/pd/portaudio/pa_common/pa_trace.c
index d55a6d37..74e8bb2f 100644
--- a/pd/portaudio/pa_common/pa_trace.c
+++ b/pd/portaudio/pa_common/pa_trace.c
@@ -1,5 +1,5 @@
/*
- * $Id: pa_trace.c,v 1.1.1.1 2002/01/22 00:52:11 phil Exp $
+ * $Id: pa_trace.c,v 1.1.1.1.2.2 2002/10/26 05:34:03 rossbencina Exp $
* Portable Audio I/O Library Trace Facility
* Store trace information in real-time for later printing.
*
@@ -35,7 +35,7 @@
#include <string.h>
#include "pa_trace.h"
-#if TRACE_REALTIME_EVENTS
+#if PA_TRACE_REALTIME_EVENTS
static char *traceTextArray[MAX_TRACE_RECORDS];
static int traceIntArray[MAX_TRACE_RECORDS];
@@ -43,19 +43,19 @@ static int traceIndex = 0;
static int traceBlock = 0;
/*********************************************************************/
-void ResetTraceMessages()
+void PaUtil_ResetTraceMessages()
{
traceIndex = 0;
}
/*********************************************************************/
-void DumpTraceMessages()
+void PaUtil_DumpTraceMessages()
{
int i;
- int numDump = (traceIndex < MAX_TRACE_RECORDS) ? traceIndex : MAX_TRACE_RECORDS;
+ int messageCount = (traceIndex < PA_MAX_TRACE_RECORDS) ? traceIndex : PA_MAX_TRACE_RECORDS;
printf("DumpTraceMessages: traceIndex = %d\n", traceIndex );
- for( i=0; i<numDump; i++ )
+ for( i=0; i<messageCount; i++ )
{
printf("%3d: %s = 0x%08X\n",
i, traceTextArray[i], traceIntArray[i] );
@@ -65,14 +65,14 @@ void DumpTraceMessages()
}
/*********************************************************************/
-void AddTraceMessage( char *msg, int data )
+void PaUtil_AddTraceMessage( const char *msg, int data )
{
- if( (traceIndex == MAX_TRACE_RECORDS) && (traceBlock == 0) )
+ if( (traceIndex == PA_MAX_TRACE_RECORDS) && (traceBlock == 0) )
{
traceBlock = 1;
- /* DumpTraceMessages(); */
+ /* PaUtil_DumpTraceMessages(); */
}
- else if( traceIndex < MAX_TRACE_RECORDS )
+ else if( traceIndex < PA_MAX_TRACE_RECORDS )
{
traceTextArray[traceIndex] = msg;
traceIntArray[traceIndex] = data;
@@ -80,4 +80,4 @@ void AddTraceMessage( char *msg, int data )
}
}
-#endif
+#endif /* TRACE_REALTIME_EVENTS */