Commit 1fc62bf4 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_1166_TDREND_DIV0

parent 9d9a506b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -171,7 +171,6 @@

#define FIX_POINT_ROM_CONST                             /* Ora: issue #1150 HRTF ROM tables should be defined as 'const'*/
#define FIX_1158_FASTCONV_REVERB_HRTF                   /* Philips: issue 1158: Rendering with FastConv to BINAURAL_ROOM_REVERB uses BRIR convolution instead of HRTF */
#define FIX_1166_TDREND_DIV0                            /* FhG,Eri: issue 1166: potential divide by zero in TD Renderer */
#define FIX_835_PARAMMC_BUFFER_VALUES                   /* FhG: BASOP issue 835: wide range of buffer values for cx in ParamMC */
#define FIX_1161_REDUCE_OMASA_HEAP                      /* VA: reduction of OMASA heap memory */

+0 −5
Original line number Diff line number Diff line
@@ -218,13 +218,8 @@ static void GenerateFilter(
            ESynL += modelEval->BMEnergiesL[modelEval->UseIndsL[i]].val;
            ESynR += modelEval->BMEnergiesR[modelEval->UseIndsR[i]].val;
        }
#ifdef FIX_1166_TDREND_DIV0
        ScaleL = sqrtf( ETotL / ( ESynL + EPSILON ) );
        ScaleR = sqrtf( ETotR / ( ESynR + EPSILON ) );
#else
        ScaleL = sqrtf( ETotL / ESynL );
        ScaleR = sqrtf( ETotR / ESynR );
#endif

        /* Build using only the most energetic components. */
        for ( k = model->iSecFirst[iSec]; k <= model->iSecLast[iSec]; k++ )