|  | 
| static CAEChannelInfo | GuessChLayout (const unsigned int channels) | 
|  | 
| static const char * | GetStdChLayoutName (const enum AEStdChLayout layout) | 
|  | 
| static unsigned int | DataFormatToBits (const enum AEDataFormat dataFormat) | 
|  | 
| static unsigned int | DataFormatToUsedBits (const enum AEDataFormat dataFormat) | 
|  | 
| static unsigned int | DataFormatToDitherBits (const enum AEDataFormat dataFormat) | 
|  | 
| static const char * | DataFormatToStr (const enum AEDataFormat dataFormat) | 
|  | 
| static const char * | StreamTypeToStr (const enum CAEStreamInfo::DataType dataType) | 
|  | 
| static float | PercentToGain (const float value) | 
|  | 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.  More... 
 | 
|  | 
| static float | GainToPercent (const float gain) | 
|  | 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.  More... 
 | 
|  | 
| static float | GainToScale (const float dB) | 
|  | convert a dB gain to a scale factor for audio manipulation Inverts gain = 20 log_10(scale)  More... 
 | 
|  | 
| static float | ScaleToGain (const float scale) | 
|  | convert a scale factor to dB gain for audio manipulation Inverts GainToScale result  More... 
 | 
|  | 
| static void | ClampArray (float *data, uint32_t count) | 
|  | 
| static bool | S16NeedsByteSwap (AEDataFormat in, AEDataFormat out) | 
|  | 
| static uint64_t | GetAVChannelLayout (const CAEChannelInfo &info) | 
|  | 
| static CAEChannelInfo | GetAEChannelLayout (uint64_t layout) | 
|  | 
| static AVSampleFormat | GetAVSampleFormat (AEDataFormat format) | 
|  | 
| static uint64_t | GetAVChannelMask (enum AEChannel aechannel) | 
|  | 
| static enum AVChannel | GetAVChannel (enum AEChannel aechannel) | 
|  | 
| static int | GetAVChannelIndex (enum AEChannel aechannel, uint64_t layout) | 
|  | 
◆ 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 
 
 
◆ 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 
 
 
◆ 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 
 
 
The documentation for this class was generated from the following files:
- xbmc/cores/AudioEngine/Utils/AEUtil.h
- xbmc/cores/AudioEngine/Utils/AEUtil.cpp