Commit e6c89f0c authored by Devansh Kandpal's avatar Devansh Kandpal
Browse files

added comments to mark _e notation for dsr

parent 5471470d
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -1273,9 +1273,9 @@ static void set_reverb_acoustic_data_fx(

    Word32 *pFc_fx = pParams->pFc_fx;
    Word32 *pRt60_fx = pParams->pRt60_fx;
    Word16 *pRt60_e = pParams->pRt60_e;
    Word16 *pRt60_e = pParams->pRt60_e; // should not be required;
    Word32 *pDsr_fx = pParams->pDsr_fx;
    Word16 *pDsr_e = pParams->pDsr_e;
    Word16 *pDsr_e = pParams->pDsr_e;//should not be required

    /* interpolate input table data for T60 and DSR to the FFT filter grid */

@@ -1508,11 +1508,11 @@ ivas_error ivas_reverb_open_fx(

    /* set up reverb acoustic data on the basis of HRTF data and renderer config  */
    Scale_sig32( params.pFc_fx, nr_fc_fft_filter, 2 );
    Word16 *pRt60_e = (Word16 *) malloc( sizeof( Word16 ) * nr_fc_fft_filter );
    Word16 *pDsr_e = (Word16 *) malloc( sizeof( Word16 ) * nr_fc_fft_filter );
    Word16 *pRt60_e = (Word16 *) malloc( sizeof( Word16 ) * nr_fc_fft_filter );//Should be removed
    Word16 *pDsr_e = (Word16 *) malloc( sizeof( Word16 ) * nr_fc_fft_filter );//Should be removed

    params.pRt60_e = pRt60_e;
    params.pDsr_e = pDsr_e;
    params.pRt60_e = pRt60_e;//Should be removed
    params.pDsr_e = pDsr_e;//Should be removed

    set_reverb_acoustic_data_fx( &params, &hRenderConfig->roomAcoustics, nr_fc_input, nr_fc_fft_filter );
    Scale_sig32( params.pFc_fx, nr_fc_fft_filter, -2 );
@@ -1565,7 +1565,7 @@ ivas_error ivas_reverb_open_fx(

    FOR( i = 0; i < nr_fc_fft_filter; i++ )
    {
        params.pDsr_fx[i] = L_shl( params.pDsr_fx[i], params.pDsr_e[i] );
        params.pDsr_fx[i] = L_shl( params.pDsr_fx[i], params.pDsr_e[i] );//Pointless - should be elminiated if mantissa and exponent notation is removed
        move32();
        pHrtf_avg_pwr_response_l_const[i] = params.pHrtf_avg_pwr_response_l_const_fx[i]; /*Q28*/
        move32();