// TODO: Replace all these dedicated interpolate functions with just one taking a single input vector and map it to a single output vector. The following function and the function call should be removed from code
L_tmp=Mpy_32_32(output_t60_fx[idx],ln_1e6_inverted_fx);// L_tmp in Q26
exp_argument_fx=BASOP_Util_Divide3232_Scale_newton(delay_diff_fx,L_tmp,&tmp_exp);//exp_argument_L_fx in Q30 (not alwys, because tmp_exp values are not constant) //Scale() returns values in the highest possible precision
exp_argument_fx=BASOP_Util_Divide3232_Scale_newton(delay_diff_fx,L_tmp,&tmp_exp);//exp_argument_L_fx in Q30 (not alwys, because tmp_exp values are not constant)
exp_argument_fx=L_shr_sat(exp_argument_fx,sub(6,tmp_exp));//exp_argument_L_fx in Q26
/* Limit exponent to approx +/-100 dB in case of incoherent value of delay_diff, to prevent overflow */
//This function can be condensed and merged within prepare_cldfb_params(). It is only called once, at this location.
ivas_reverb_set_energies(hHrtfStatistics->average_energy_l,hHrtfStatistics->average_energy_r,output_Fs,avg_pwr_left_fx,avg_pwr_right_fx);//This function returns avg powers for left and right in Q28 -> why?? how??