| AAX SDK 2.6.1 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

Loading...
Searching...
No Matches
AAX_Constants.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 * Copyright 2009-2015, 2023 Avid Technology, Inc.
4 * All rights reserved.
5 *
6 * CONFIDENTIAL: this document contains confidential information of Avid. Do
7 * not disclose to any third party. Use of the information contained in this
8 * document is subject to an Avid SDK license.
9 */
10
17/*================================================================================================*/
18#pragma once
19
20#ifndef AAX_CONSTANTS_H
21#define AAX_CONSTANTS_H
22
23
24/* the following lines were re-introduced on 6/11/09 because
25 the FFmt project still uses SInt32 types */
26#ifdef _TMS320C6X
27 typedef signed int SInt32;
28#else
29// #include "DigiPublicTypes.h"
30#endif
31/* end 6/11/09 changes */
32
33
34// Standard headers
35#include <cmath>
36
37 namespace AAX
38{
39
40#if __BIG_ENDIAN__
41 const int cBigEndian=1;
42 const int cLittleEndian=0;
43#else
44 const int cBigEndian=0;
45 const int cLittleEndian=1;
46#endif
47
48 const double cPi = 3.1415926535897932384626433832795;
49 const double cTwoPi = 6.2831853071795862319959269370884; //2.0*3.1415926535897932384626433832795;
50 const double cHalfPi = 1.5707963267948965579989817342721; //0.5*3.1415926535897932384626433832795;
51 const double cQuarterPi = 0.78539816339744827899949086713605; //0.25*3.1415926535897932384626433832795;
52 const double cRootTwo = 1.4142135623730950488016887242097;
53 const double cOneOverRootTwo= 0.70710678118654752440084436210485;
54
55
56//Obviously these numbers are are not exact.
57 const double cPos3dB=1.4142135623730950488016887242097;
58 const double cNeg3dB=0.70710678118654752440084436210485;
59 const double cPos6dB=2.0;
60 const double cNeg6dB=0.5;
61
62 const double cNormalizeLongToAmplitudeOneHalf = 0.00000000023283064365386962890625; //1.0/double(1LL<<32LL);
63 const double cNormalizeLongToAmplitudeOne = 1.0/double(1<<31); //-0.0000000004656612873077392578125;
64
65 const double cMilli=0.001;
66 const double cMicro=0.001*0.001;
67 const double cNano=0.001*0.001*0.001;
68 const double cPico=0.001*0.001*0.001*0.001;
69
70 const double cKilo=1000.0;
71 const double cMega=1000.0*1000.0;
72 const double cGiga=1000.0*1000.0*1000.0;
73
74 enum ESampleRates
75{
76 e44100SampleRate = 44100,
77 e48000SampleRate = 48000,
78 e88200SampleRate = 88200,
79 e96000SampleRate = 96000,
80 e176400SampleRate = 176400,
81 e192000SampleRate = 192000
82};
83
84} // namespace AAX
85
86#endif // AAX_CONSTANTS_H
87
AAX
Definition: AAX_EnvironmentUtilities.h:59
AAX::cOneOverRootTwo
const double cOneOverRootTwo
Definition: AAX_Constants.h:53
AAX::cTwoPi
const double cTwoPi
Definition: AAX_Constants.h:49
AAX::cMilli
const double cMilli
Definition: AAX_Constants.h:65
AAX::cNano
const double cNano
Definition: AAX_Constants.h:67
AAX::cPico
const double cPico
Definition: AAX_Constants.h:68
AAX::cHalfPi
const double cHalfPi
Definition: AAX_Constants.h:50
AAX::ESampleRates
ESampleRates
Definition: AAX_Constants.h:75
AAX::e44100SampleRate
@ e44100SampleRate
Definition: AAX_Constants.h:76
AAX::e96000SampleRate
@ e96000SampleRate
Definition: AAX_Constants.h:79
AAX::e176400SampleRate
@ e176400SampleRate
Definition: AAX_Constants.h:80
AAX::e88200SampleRate
@ e88200SampleRate
Definition: AAX_Constants.h:78
AAX::e192000SampleRate
@ e192000SampleRate
Definition: AAX_Constants.h:81
AAX::e48000SampleRate
@ e48000SampleRate
Definition: AAX_Constants.h:77
AAX::cMicro
const double cMicro
Definition: AAX_Constants.h:66
AAX::cPi
const double cPi
Definition: AAX_Constants.h:48
AAX::cNormalizeLongToAmplitudeOneHalf
const double cNormalizeLongToAmplitudeOneHalf
Definition: AAX_Constants.h:62
AAX::cKilo
const double cKilo
Definition: AAX_Constants.h:70
AAX::cPos6dB
const double cPos6dB
Definition: AAX_Constants.h:59
AAX::cNeg6dB
const double cNeg6dB
Definition: AAX_Constants.h:60
AAX::cMega
const double cMega
Definition: AAX_Constants.h:71
AAX::cPos3dB
const double cPos3dB
Definition: AAX_Constants.h:57
AAX::cNormalizeLongToAmplitudeOne
const double cNormalizeLongToAmplitudeOne
Definition: AAX_Constants.h:63
AAX::cQuarterPi
const double cQuarterPi
Definition: AAX_Constants.h:51
AAX::cGiga
const double cGiga
Definition: AAX_Constants.h:72
AAX::cBigEndian
const int cBigEndian
Definition: AAX_Constants.h:44
AAX::cRootTwo
const double cRootTwo
Definition: AAX_Constants.h:52
AAX::cNeg3dB
const double cNeg3dB
Definition: AAX_Constants.h:58
AAX::cLittleEndian
const int cLittleEndian
Definition: AAX_Constants.h:45