\hypertarget{a00584_source}{}\doxysection{AAX\+\_\+\+Utils\+Native.\+h}
\label{a00584_source}\index{AAX\_UtilsNative.h@{AAX\_UtilsNative.h}}
\mbox{\hyperlink{a00584}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ Copyright\ 2013-\/2017,\ 2023-\/2024\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ This\ file\ is\ part\ of\ the\ Avid\ AAX\ SDK.}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ The\ AAX\ SDK\ is\ subject\ to\ commercial\ or\ open-\/source\ licensing.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ By\ using\ the\ AAX\ SDK,\ you\ agree\ to\ the\ terms\ of\ both\ the\ Avid\ AAX\ SDK\ License}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ \ Agreement\ and\ Avid\ Privacy\ Policy.}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ AAX\ SDK\ License:\ https://developer.avid.com/aax}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ Privacy\ Policy:\ https://www.avid.com/legal/privacy-\/policy-\/statement}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ \ Or:\ You\ may\ also\ use\ this\ code\ under\ the\ terms\ of\ the\ GPL\ v3\ (see}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ \ www.gnu.org/licenses).}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ \ THE\ AAX\ SDK\ IS\ PROVIDED\ "{}AS\ IS"{}\ WITHOUT\ ANY\ WARRANTY,\ AND\ ALL\ WARRANTIES,\ WHETHER}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ \ EXPRESSED\ OR\ IMPLIED,\ INCLUDING\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ PURPOSE,\ ARE}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ \ DISCLAIMED.}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00032\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#ifndef\ \_AAX\_UTILSNATIVE\_H\_}}
\DoxyCodeLine{00038\ \textcolor{preprocessor}{\#define\ \_AAX\_UTILSNATIVE\_H\_}}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\#ifndef\ \_TMS320C6X}}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{comment}{//\ AAX\ Includes}}
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00416}{AAX\_CString.h}}"{}}}
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00551}{AAX\_IString.h}}"{}}}
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00740}{AAX\_Assert.h}}"{}}}
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00542}{AAX.h}}"{}}}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00049\ \textcolor{comment}{//\ Standard\ Library\ Includes}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#include\ <cmath>}\ \textcolor{comment}{//\ for\ log()}}
\DoxyCodeLine{00051\ \textcolor{preprocessor}{\#include\ <string.h>}}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
\DoxyCodeLine{00055\ \textcolor{preprocessor}{\#pragma\ mark\ Utility\ functions}}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{a00948}{AAX}}}
\DoxyCodeLine{00058\ \{}
\DoxyCodeLine{00059\ \ \ \ \ }
\DoxyCodeLine{00063\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_ae8de30637f08cd29bb0e27526ce9e21b}{SafeLog}}\ (\textcolor{keywordtype}{double}\ aValue)\ \{\ \textcolor{keywordflow}{return}\ aValue\ <=\ 0.0\ ?\ 0.0\ :\ log(aValue);\ \}}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00068\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{float}\ \mbox{\hyperlink{a00948_ad762727aac31ad8b7bba8b67a4bc2edc}{SafeLogf}}\ (\textcolor{keywordtype}{float}\ aValue)\ \{\ \textcolor{keywordflow}{return}\ aValue\ <=\ 0.0f\ ?\ 0.0f\ :\ logf(aValue);\ \}}
\DoxyCodeLine{00069\ }
\DoxyCodeLine{00072\ \ \ \ \ \textcolor{keyword}{inline}\ \mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a00948_ae4d1a0a925aa954899fec653dc041b75}{IsParameterIDEqual}}\ (\ \mbox{\hyperlink{a00542_a1440c756fe5cb158b78193b2fc1780d1}{AAX\_CParamID}}\ iParam1,\ \mbox{\hyperlink{a00542_a1440c756fe5cb158b78193b2fc1780d1}{AAX\_CParamID}}\ iParam2\ )\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{static\_cast<}\mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\textcolor{keyword}{>}(\ strcmp\ (\ iParam1,\ iParam2\ )\ ==\ 0\ );\ \}}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00076\ \ \ \ \ \textcolor{keyword}{inline}\ \mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a00948_aef81989128dcac01f2be8fd25096540f}{IsEffectIDEqual}}\ (\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a02330}{AAX\_IString}}\ *\ iEffectID1,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a02330}{AAX\_IString}}\ *\ iEffectID2\ )\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{static\_cast<}\mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\textcolor{keyword}{>}(\ strcmp\ (\ iEffectID1-\/>\mbox{\hyperlink{a02330_a1724cb70a19c290763c61b19b01c9d76}{Get}}(),\ iEffectID2-\/>\mbox{\hyperlink{a02330_a1724cb70a19c290763c61b19b01c9d76}{Get}}()\ )\ ==\ 0\ );\ \}}
\DoxyCodeLine{00077\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00080\ \ \ \ \ \textcolor{keyword}{inline}\ \mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a00948_ab63efd791ab1cbbcdb004302b106c45c}{IsAvidNotification}}\ (\ \mbox{\hyperlink{a00542_ac678f9c1fbcc26315d209f71a147a175}{AAX\_CTypeID}}\ inNotificationID\ )}
\DoxyCodeLine{00081\ \ \ \ \ \{}
\DoxyCodeLine{00082\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ (\mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}})(((\textcolor{charliteral}{'A'}\ ==\ ((inNotificationID\ \&\ 0xFF000000)\ >>\ 24))\ \&\&}
\DoxyCodeLine{00083\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{charliteral}{'X'}\ ==\ ((inNotificationID\ \&\ 0x00FF0000)\ >>\ 16)))\ ||}
\DoxyCodeLine{00084\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (inNotificationID\ ==\ \textcolor{stringliteral}{'ASPv'}));}
\DoxyCodeLine{00085\ \ \ \ \ \}}
\DoxyCodeLine{00086\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00087\ \}\ \textcolor{comment}{//\ namespace\ AAX}}
\DoxyCodeLine{00088\ }
\DoxyCodeLine{00089\ }
\DoxyCodeLine{00090\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \#ifndef\ \_TMS320C6X}}
\DoxyCodeLine{00091\ }
\DoxyCodeLine{00092\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \#ifndef\ \_AAX\_UTILSNATIVE\_H\_}}

\end{DoxyCode}
