11 #include "AEAudioFormat.h"    12 #include "PlatformDefs.h"    16 #include <libavutil/channel_layout.h>    17 #include <libavutil/samplefmt.h>    29   void   SetDelay(
double d);
    30   double GetDelay() 
const;
    33   double maxcorrection = 0.0; 
    57   void enter() { m_enter++; }
    58   void leave() { m_leave = m_enter; }
    62   volatile unsigned int m_enter = 0;
    63   volatile unsigned int m_leave = 0;
    71   , m_begin(section.m_enter)
    76     if(m_section.m_enter != m_begin
    77     || m_section.m_enter != m_section.m_leave)
    79       m_begin = m_section.m_enter;
    95   static float SoftClamp(
const float x);
    99   static const char*             GetStdChLayoutName(
const enum AEStdChLayout layout);
   100   static unsigned int      DataFormatToBits  (
const enum AEDataFormat dataFormat);
   101   static unsigned int      DataFormatToUsedBits (
const enum AEDataFormat dataFormat);
   102   static unsigned int      DataFormatToDitherBits(
const enum AEDataFormat dataFormat);
   103   static const char*             DataFormatToStr   (
const enum AEDataFormat dataFormat);
   104   static const char* StreamTypeToStr(
const enum CAEStreamInfo::DataType dataType);
   115     static const float db_range = 60.0f;
   116     return (value - 1)*db_range;
   128     static const float db_range = 60.0f;
   129     return 1+(gain/db_range);
   143       val = pow(10.0f, dB/20);
   161     return 20*log10(scale);
   164   #if defined(HAVE_SSE) && defined(__SSE__)   165   static void SSEMulArray     (
float *data, 
const float mul, uint32_t count);
   166   static void SSEMulAddArray  (
float *data, 
float *add, 
const float mul, uint32_t count);
   168   static void ClampArray(
float *data, uint32_t count);
   170   static bool S16NeedsByteSwap(AEDataFormat in, AEDataFormat out);
   174   static AVSampleFormat GetAVSampleFormat(AEDataFormat format);
   175   static uint64_t GetAVChannelMask(
enum AEChannel aechannel);
   176   static enum AVChannel GetAVChannel(
enum AEChannel aechannel);
   177   static int GetAVChannelIndex(
enum AEChannel aechannel, uint64_t layout);
 
static float ScaleToGain(const float scale)
convert a scale factor to dB gain for audio manipulation Inverts GainToScale result ...
Definition: AEUtil.h:159
static float PercentToGain(const float value)
convert a volume percentage (as a proportion) to a dB gain We assume a dB range of 60dB...
Definition: AEUtil.h:113
lockless consistency guaranteeer 
Definition: AEUtil.h:54
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. 
Definition: AEUtil.h:126
Definition: AEChannelInfo.h:19
static float GainToScale(const float dB)
convert a dB gain to a scale factor for audio manipulation Inverts gain = 20 log_10(scale) ...
Definition: AEUtil.h:138