#include <AEUtil.h>
◆ ClampArray()
void CAEUtil::ClampArray |
( |
float * |
data, |
|
|
uint32_t |
count |
|
) |
| |
|
static |
◆ DataFormatToBits()
unsigned int CAEUtil::DataFormatToBits |
( |
const enum AEDataFormat |
dataFormat | ) |
|
|
static |
◆ DataFormatToDitherBits()
unsigned int CAEUtil::DataFormatToDitherBits |
( |
const enum AEDataFormat |
dataFormat | ) |
|
|
static |
◆ DataFormatToStr()
const char * CAEUtil::DataFormatToStr |
( |
const enum AEDataFormat |
dataFormat | ) |
|
|
static |
◆ DataFormatToUsedBits()
unsigned int CAEUtil::DataFormatToUsedBits |
( |
const enum AEDataFormat |
dataFormat | ) |
|
|
static |
◆ GainToPercent()
static float CAEUtil::GainToPercent |
( |
const float |
gain | ) |
|
|
inlinestatic |
convert a dB gain to volume percentage (as a proportion) We assume a dB range of 60dB, i.e. assume that 0% volume corresponds to a reduction of 60dB.
- Parameters
-
the | corresponding gain in dB from -60dB .. 0dB. |
- Returns
- value the volume from 0..1
- See also
- ScaleToGain
◆ GainToScale()
static float CAEUtil::GainToScale |
( |
const float |
dB | ) |
|
|
inlinestatic |
convert a dB gain to a scale factor for audio manipulation Inverts gain = 20 log_10(scale)
- Parameters
-
- Returns
- the scale factor (equivalent to a voltage multiplier).
- See also
- PercentToGain
◆ GetAEChannelLayout()
◆ GetAVChannel()
uint64_t CAEUtil::GetAVChannel |
( |
enum AEChannel |
aechannel | ) |
|
|
static |
◆ GetAVChannelIndex()
int CAEUtil::GetAVChannelIndex |
( |
enum AEChannel |
aechannel, |
|
|
uint64_t |
layout |
|
) |
| |
|
static |
◆ GetAVChannelLayout()
◆ GetAVSampleFormat()
AVSampleFormat CAEUtil::GetAVSampleFormat |
( |
AEDataFormat |
format | ) |
|
|
static |
◆ GetStdChLayoutName()
const char * CAEUtil::GetStdChLayoutName |
( |
const enum AEStdChLayout |
layout | ) |
|
|
static |
◆ GuessChLayout()
◆ PercentToGain()
static float CAEUtil::PercentToGain |
( |
const float |
value | ) |
|
|
inlinestatic |
convert a volume percentage (as a proportion) to a dB gain We assume a dB range of 60dB, i.e. assume that 0% volume corresponds to a reduction of 60dB.
- Parameters
-
value | the volume from 0..1 |
- Returns
- the corresponding gain in dB from -60dB .. 0dB.
- See also
- GainToScale
◆ S16NeedsByteSwap()
◆ ScaleToGain()
static float CAEUtil::ScaleToGain |
( |
const float |
scale | ) |
|
|
inlinestatic |
convert a scale factor to dB gain for audio manipulation Inverts GainToScale result
- Parameters
-
the | scale factor (equivalent to a voltage multiplier). |
- Returns
- dB the gain in decibels.
- See also
- GainToScale
◆ StreamTypeToStr()
The documentation for this class was generated from the following files: