![]() |
AAX SDK
2.1.1
Avid Audio Extensions Development Kit
|
Go to the source code of this file.
Declarations for cross-platform AAX_ASSERT, AAX_TRACE and related facilities.
Enabled using the DTF_AAXPLUGINS DigiTrace facility
AAX_ASSERT( condition ) - Debug-only for host and TI. If the condition is false, triggers a DigiTrace including the condition, file, and line numbers.
AAX_TRACE( iPriority, iMessageStr [, params...] ) - Debug-only; traces a printf-style message.
AAX_TRACE_RELEASE( iPriority, iMessageStr [, params...] ) - Debug and release; traces a printf-style message.
inPriority: one of
These correspond to how the trace messages are filtered using DigiTrace.
DTF_AAXPLUGINS facility will slightly reduce the overhead of trace statements and chip communication on HDX systems.==============================================================================
Macros | |
| #define | kAAX_Trace_Priority_None AAX_eTracePriorityHost_None |
| #define | kAAX_Trace_Priority_High AAX_eTracePriorityHost_High |
| #define | kAAX_Trace_Priority_Normal AAX_eTracePriorityHost_Normal |
| #define | kAAX_Trace_Priority_Low AAX_eTracePriorityHost_Low |
| #define | AAX_ASSERT(condition) do { ; } while (0) |
| Asserts that a condition is true, and logs an error if the condition is false. Debug builds only. More... | |
| #define | AAX_TRACE(iPriority,...) do { ; } while (0) |
| Print a trace statement to the log (debug builds only) More... | |
| #define | AAX_TRACE_RELEASE(iPriority,...) |
| Print a trace statement to the log. More... | |
Typedefs | |
| typedef AAX_ETracePriorityHost | AAX_ETracePriority |
| #define kAAX_Trace_Priority_None AAX_eTracePriorityHost_None |
| #define kAAX_Trace_Priority_High AAX_eTracePriorityHost_High |
| #define kAAX_Trace_Priority_Normal AAX_eTracePriorityHost_Normal |
| #define kAAX_Trace_Priority_Low AAX_eTracePriorityHost_Low |
| #define AAX_ASSERT | ( | condition | ) | do { ; } while (0) |
Asserts that a condition is true, and logs an error if the condition is false. Debug builds only.
Notes
Usage Each invocation of this macro takes a single argument, which is interpreted as a bool.
Referenced by AAX_CParameter< T >::AAX_CParameter().
| #define AAX_TRACE | ( | iPriority, | |
| ... | |||
| ) | do { ; } while (0) |
Print a trace statement to the log (debug builds only)
Use this macro to print a trace statement to the log file from debug builds of a plug-in.
Notes
Usage Each invocation of this macro takes a trace priority and a printf-style logging string. For example:
| #define AAX_TRACE_RELEASE | ( | iPriority, | |
| ... | |||
| ) |
Print a trace statement to the log.
Use this macro to print a trace statement to the log file. This macro will be included in all builds of the plug-in.
Notes
Usage Each invocation of this macro takes a trace priority and a printf-style logging string.
Because output from this macro will be enabled on end users' systems under certain tracing configurations, logs should always be formatted with some standard information to avoid confusion between logs from different plug-ins. This is the recommended formatting for AAX_TRACE_RELEASE logs:
[Manufacturer name] [Plug-in name] [Plug-in version][logging text (indented)] For example:
1.8.5