\hypertarget{a00842_source}{}\doxysection{AAX\+\_\+\+Constants.\+h}
\label{a00842_source}\index{AAX\_Constants.h@{AAX\_Constants.h}}
\mbox{\hyperlink{a00842}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ \ Copyright\ 2009-\/2015,\ 2023-\/2024\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ This\ file\ is\ part\ of\ the\ Avid\ AAX\ SDK.}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ The\ AAX\ SDK\ is\ subject\ to\ commercial\ or\ open-\/source\ licensing.}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ \ By\ using\ the\ AAX\ SDK,\ you\ agree\ to\ the\ terms\ of\ both\ the\ Avid\ AAX\ SDK\ License}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ Agreement\ and\ Avid\ Privacy\ Policy.}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ AAX\ SDK\ License:\ https://developer.avid.com/aax}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ Privacy\ Policy:\ https://www.avid.com/legal/privacy-\/policy-\/statement}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ Or:\ You\ may\ also\ use\ this\ code\ under\ the\ terms\ of\ the\ GPL\ v3\ (see}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ \ www.gnu.org/licenses).}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ \ THE\ AAX\ SDK\ IS\ PROVIDED\ "{}AS\ IS"{}\ WITHOUT\ ANY\ WARRANTY,\ AND\ ALL\ WARRANTIES,\ WHETHER}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ \ EXPRESSED\ OR\ IMPLIED,\ INCLUDING\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ PURPOSE,\ ARE}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ \ DISCLAIMED.}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00030\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#ifndef\ AAX\_CONSTANTS\_H}}
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#define\ AAX\_CONSTANTS\_H}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \textcolor{comment}{/*\ the\ following\ lines\ were\ re-\/introduced\ on\ 6/11/09\ because}}
\DoxyCodeLine{00038\ \textcolor{comment}{\ \ \ \ the\ FFmt\ project\ still\ uses\ SInt32\ types\ \ \ \ */}}
\DoxyCodeLine{00039\ \textcolor{preprocessor}{\#ifdef\ \_TMS320C6X}}
\DoxyCodeLine{00040\ \ \ \ \ \textcolor{keyword}{typedef}\ \ \ \textcolor{keywordtype}{signed}\ \textcolor{keywordtype}{int}\ \ SInt32;}
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00042\ \textcolor{comment}{//\ \ \#include\ "{}DigiPublicTypes.h"{}}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00044\ \textcolor{comment}{/*\ end\ 6/11/09\ changes\ */}}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \textcolor{comment}{//\ Standard\ headers}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#include\ <cmath>}}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00050\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{a00948}{AAX}}}
\DoxyCodeLine{00051\ \{}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#if\ \_\_BIG\_ENDIAN\_\_}}
\DoxyCodeLine{00054\ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{a00948_af4c24d9d2042fe4252db5431ef126d00}{cBigEndian}}=1;}
\DoxyCodeLine{00055\ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{a00948_af7fcadf3ad159bf29bbe5a1c494827f2}{cLittleEndian}}=0;}
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00057\ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{a00948_af4c24d9d2042fe4252db5431ef126d00}{cBigEndian}}=0;}
\DoxyCodeLine{00058\ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{a00948_af7fcadf3ad159bf29bbe5a1c494827f2}{cLittleEndian}}=1;}
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a8e084631426285b3771b32dd9bb0d1a0}{cPi}}\ \ \ \ \ \ \ \ \ =\ 3.1415926535897932384626433832795;}
\DoxyCodeLine{00062\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a13d2c593bc19660c60caf48961f16361}{cTwoPi}}\ \ \ \ \ \ \ \ \ \ \ =\ 6.2831853071795862319959269370884;\ \ \textcolor{comment}{//2.0*3.1415926535897932384626433832795;}}
\DoxyCodeLine{00063\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a5496b80979f89206ab4966721ef09e07}{cHalfPi}}\ \ \ \ \ =\ 1.5707963267948965579989817342721;\ \ \textcolor{comment}{//0.5*3.1415926535897932384626433832795;}}
\DoxyCodeLine{00064\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_ad4d53f57051266ed14dc1632e95cb04e}{cQuarterPi}}\ \ \ \ \ \ \ =\ 0.78539816339744827899949086713605;\ \textcolor{comment}{//0.25*3.1415926535897932384626433832795;}}
\DoxyCodeLine{00065\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_af5ff0caa18f36334fd5c52e97f4a0cad}{cRootTwo}}\ \ \ \ \ \ \ =\ 1.4142135623730950488016887242097;}
\DoxyCodeLine{00066\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a0ae4975165aaf788ed120dbdd82a3cd7}{cOneOverRootTwo}}=\ 0.70710678118654752440084436210485;}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00069\ \textcolor{comment}{//Obviously\ these\ numbers\ are\ are\ not\ exact.}}
\DoxyCodeLine{00070\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_ad25c51177cb216caae3b4747b028d8ba}{cPos3dB}}=1.4142135623730950488016887242097;}
\DoxyCodeLine{00071\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_af6f212fd5bb0df08db615fffe4445a3d}{cNeg3dB}}=0.70710678118654752440084436210485;}
\DoxyCodeLine{00072\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_aade00875e4e88b00d991197f574c42ed}{cPos6dB}}=2.0;}
\DoxyCodeLine{00073\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_aca5925abc898233b406504d92ee9ef4c}{cNeg6dB}}=0.5;}
\DoxyCodeLine{00074\ }
\DoxyCodeLine{00075\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a93ce2d3935dc06b1c4c887568df84788}{cNormalizeLongToAmplitudeOneHalf}}\ \ \ =\ 0.00000000023283064365386962890625;\ \textcolor{comment}{//1.0/double(1LL<<32LL);}}
\DoxyCodeLine{00076\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_ad30333177ff94148492a02325045a827}{cNormalizeLongToAmplitudeOne}}\ \ \ \ \ \ \ =\ 1.0/double(1<<31);\ \textcolor{comment}{//-\/0.0000000004656612873077392578125;\ \ }}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a1b66f305f76b3f27b75c275c805c3d9b}{cMilli}}=0.001;}
\DoxyCodeLine{00079\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a661c2b5af007244eb8ffcefdae2608d0}{cMicro}}=0.001*0.001;}
\DoxyCodeLine{00080\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a3227cf335c40f4afcc72efd8f774ac92}{cNano}}=0.001*0.001*0.001;}
\DoxyCodeLine{00081\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_a480023c4a430fed889626b81c66d7589}{cPico}}=0.001*0.001*0.001*0.001;}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00083\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_aa151b1429ed5eabb4000d1b13e47a5c2}{cKilo}}=1000.0;}
\DoxyCodeLine{00084\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_ad20650c749492b31ef48b41ac84f57e9}{cMega}}=1000.0*1000.0;}
\DoxyCodeLine{00085\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00948_ae5910a5df81de70f784c2fd073f70422}{cGiga}}=1000.0*1000.0*1000.0;}
\DoxyCodeLine{00086\ }
\DoxyCodeLine{00087\ \textcolor{keyword}{enum}\ \mbox{\hyperlink{a00948_a60daf5874c02a01d2af8c582c0643e2d}{ESampleRates}}}
\DoxyCodeLine{00088\ \{}
\DoxyCodeLine{00089\ \ \ \ \ \mbox{\hyperlink{a00948_a60daf5874c02a01d2af8c582c0643e2da0fabb364c77d1597745ea7faede310a9}{e44100SampleRate}}\ =\ 44100,}
\DoxyCodeLine{00090\ \ \ \ \ \mbox{\hyperlink{a00948_a60daf5874c02a01d2af8c582c0643e2dabf618a3399a754a6ec3a367c102f8850}{e48000SampleRate}}\ =\ 48000,}
\DoxyCodeLine{00091\ \ \ \ \ \mbox{\hyperlink{a00948_a60daf5874c02a01d2af8c582c0643e2da6b2f92d94b3c151993d544d924321620}{e88200SampleRate}}\ =\ 88200,}
\DoxyCodeLine{00092\ \ \ \ \ \mbox{\hyperlink{a00948_a60daf5874c02a01d2af8c582c0643e2da1161e560e2b301b8b45d17083696915e}{e96000SampleRate}}\ =\ 96000,}
\DoxyCodeLine{00093\ \ \ \ \ \mbox{\hyperlink{a00948_a60daf5874c02a01d2af8c582c0643e2da17be0028e4f2ca09f095573240cef263}{e176400SampleRate}}\ =\ 176400,}
\DoxyCodeLine{00094\ \ \ \ \ \mbox{\hyperlink{a00948_a60daf5874c02a01d2af8c582c0643e2da755a96e92d23adf2ad3546551e2ad49c}{e192000SampleRate}}\ =\ 192000}
\DoxyCodeLine{00095\ \};}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00097\ \}\ \textcolor{comment}{//\ namespace\ AAX}}
\DoxyCodeLine{00098\ }
\DoxyCodeLine{00099\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ AAX\_CONSTANTS\_H}}
\DoxyCodeLine{00100\ }

\end{DoxyCode}
