Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e88016a authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "libeffects: Added missing table entries corresponding to 88.2kHz and 176.4kHz"

parents 04a71420 2853c307
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ void LVC_Mixer_SetTimeConstant(LVMixer3_FLOAT_st *pStream,
                               LVM_INT16           NumChannels)
{
#ifdef HIGHER_FS
    LVM_FLOAT   DeltaTable[11] = {0.500000f,/*8000*/
    LVM_FLOAT   DeltaTable[13] = {0.500000f,/*8000*/
                                  0.362812f,/*11025*/
                                  0.333333f,/*12000*/
                                  0.250000f,/*16000*/
@@ -60,7 +60,9 @@ void LVC_Mixer_SetTimeConstant(LVMixer3_FLOAT_st *pStream,
                                  0.125000f,/*32000*/
                                  0.090703f,/*44100*/
                                  0.083333f,/*48000*/
                                  0.045352f,/*88200*/
                                  0.041667f,/*96000*/
                                  0.022676f,/*176400*/
                                  0.020833f};/*192000*/
#else
    LVM_FLOAT   DeltaTable[9] = {0.500000f,/*8000*/
+3 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ void LVC_Mixer_VarSlope_SetTimeConstant( LVMixer3_FLOAT_st *pStream,
                                         LVM_INT16           NumChannels)
{
#ifdef HIGHER_FS
     LVM_FLOAT   DeltaTable[11] = {0.500000f,/*8000*/
     LVM_FLOAT   DeltaTable[13] = {0.500000f,/*8000*/
                                   0.362812f,/*11025*/
                                   0.333333f,/*12000*/
                                   0.250000f,/*16000*/
@@ -61,7 +61,9 @@ void LVC_Mixer_VarSlope_SetTimeConstant( LVMixer3_FLOAT_st *pStream,
                                   0.125000f,/*32000*/
                                   0.090703f,/*44100*/
                                   0.083333f,/*48000*/
                                   0.045352f,/*88200*/
                                   0.041666f,/*96000*/
                                   0.022676f,/*176400*/
                                   0.020833f};/*192000*/
#else
    LVM_FLOAT   DeltaTable[9] = {0.500000f,/*8000*/
+4 −0
Original line number Diff line number Diff line
@@ -53,7 +53,9 @@ const LVM_INT32 LVVDL_2PiOnFsShiftTable[]={LVVDL_2PiByFs_SHIFT1 , /*
#define LVVDL_2PiBy_48000_f       0.000130900f

#ifdef HIGHER_FS
#define LVVDL_2PiBy_88200_f       0.000071238f
#define LVVDL_2PiBy_96000_f       0.000065450f
#define LVVDL_2PiBy_176400_f      0.000035619f
#define LVVDL_2PiBy_192000_f      0.000032725f
#endif
const LVM_FLOAT     LVVDL_2PiOnFsTable[] =  {LVVDL_2PiBy_8000_f,
@@ -66,7 +68,9 @@ const LVM_FLOAT LVVDL_2PiOnFsTable[] = {LVVDL_2PiBy_8000_f,
                                             LVVDL_2PiBy_44100_f,
                                             LVVDL_2PiBy_48000_f
#ifdef HIGHER_FS
                                            ,LVVDL_2PiBy_88200_f
                                            ,LVVDL_2PiBy_96000_f
                                            ,LVVDL_2PiBy_176400_f
                                            ,LVVDL_2PiBy_192000_f
#endif
                                           };