![]() |
AAX SDK
2.4.1
Avid Audio Extensions Development Kit
|
Go to the source code of this file.
Functions | |
double | GainToDB (double aGain) |
Convert Gain to dB. More... | |
double | DBToGain (double dB) |
Convert dB to Gain. More... | |
double | LongToDouble (int32_t aLong) |
Convert Long to Double. More... | |
int32_t | DoubleToLong (double aDouble) |
convert floating point equivalent back to int32_t More... | |
int32_t | DoubleToDSPCoef (double d, double max=k56kFloatPosMax, double min=k56kFloatNegMax) |
Convert Double to DSPCoef. More... | |
double | DSPCoefToDouble (int32_t c, int32_t max=k56kFracPosMax, int32_t min=k56kFracNegMax) |
Convert DSPCoef to Double. More... | |
double | ThirtyTwoBitDSPCoefToDouble (int32_t c) |
ThirtyTwoBitDSPCoefToDouble. More... | |
int32_t | DoubleTo32BitDSPCoefRnd (double d) |
DoubleTo32BitDSPCoefRnd. More... | |
int32_t | DoubleTo32BitDSPCoef (double d) |
int32_t | DoubleToDSPCoefRnd (double d, double max, double min) |
Variables | |
const int32_t | k32BitPosMax = 0x7FFFFFFF |
const int32_t | k32BitAbsMax = 0x80000000 |
const int32_t | k32BitNegMax = 0x80000000 |
const int32_t | k56kFracPosMax = 0x007FFFFF |
const int32_t | k56kFracAbsMax = 0x00800000 |
const int32_t | k56kFracHalf = 0x00400000 |
const int32_t | k56kFracNegOne = 0xFF800000 |
const int32_t | k56kFracNegMax = k56kFracNegOne |
const int32_t | k56kFracZero = 0x00000000 |
const double | kOneOver56kFracAbsMax = 1.0/double(k56kFracAbsMax) |
const double | k56kFloatPosMax = double(k56kFracPosMax)/double(k56kFracAbsMax) |
const double | k56kFloatNegMax = -1.0 |
const double | kNeg144DB = -144.0 |
const double | kNeg144Gain = 6.3095734448019324943436013662234e-8 |
|
inline |
|
inline |
Convert dB to Gain.
|
inline |
Convert Long to Double.
LongToDouble: convert 24 bit fixed point in a int32_t to floating point equivalent
References k56kFracNegMax, k56kFracPosMax, and kOneOver56kFracAbsMax.
int32_t DoubleToLong | ( | double | aDouble | ) |
convert floating point equivalent back to int32_t
|
inline |
Convert Double to DSPCoef.
References k56kFracAbsMax, k56kFracNegMax, and k56kFracPosMax.
Referenced by DoubleTo32BitDSPCoefRnd().
|
inline |
Convert DSPCoef to Double.
References k56kFracNegMax, k56kFracPosMax, and kOneOver56kFracAbsMax.
Referenced by ThirtyTwoBitDSPCoefToDouble().
|
inline |
ThirtyTwoBitDSPCoefToDouble.
References DSPCoefToDouble(), k32BitNegMax, and k32BitPosMax.
|
inline |
DoubleTo32BitDSPCoefRnd.
References DoubleToDSPCoef(), k32BitNegMax, and k32BitPosMax.
int32_t DoubleTo32BitDSPCoef | ( | double | d | ) |
int32_t DoubleToDSPCoefRnd | ( | double | d, |
double | max, | ||
double | min | ||
) |
const int32_t k32BitPosMax = 0x7FFFFFFF |
Referenced by DoubleTo32BitDSPCoefRnd(), and ThirtyTwoBitDSPCoefToDouble().
const int32_t k32BitAbsMax = 0x80000000 |
const int32_t k32BitNegMax = 0x80000000 |
Referenced by DoubleTo32BitDSPCoefRnd(), and ThirtyTwoBitDSPCoefToDouble().
const int32_t k56kFracPosMax = 0x007FFFFF |
Referenced by DoubleToDSPCoef(), DSPCoefToDouble(), and LongToDouble().
const int32_t k56kFracAbsMax = 0x00800000 |
Referenced by DoubleToDSPCoef().
const int32_t k56kFracHalf = 0x00400000 |
const int32_t k56kFracNegOne = 0xFF800000 |
const int32_t k56kFracNegMax = k56kFracNegOne |
Referenced by DoubleToDSPCoef(), DSPCoefToDouble(), and LongToDouble().
const int32_t k56kFracZero = 0x00000000 |
const double kOneOver56kFracAbsMax = 1.0/double(k56kFracAbsMax) |
Referenced by DSPCoefToDouble(), and LongToDouble().
const double k56kFloatPosMax = double(k56kFracPosMax)/double(k56kFracAbsMax) |
const double k56kFloatNegMax = -1.0 |
const double kNeg144DB = -144.0 |
Referenced by GainToDB().
const double kNeg144Gain = 6.3095734448019324943436013662234e-8 |