returnIVAS_ERROR(IVAS_ERR_FAILED_ALLOC,"Could not allocate memory for hrtf data");
}
floatToFixed_arr32((float*)defaultHRIR_left_avg_power_48kHz,HrtfStatistics->average_energy_l_dyn,Q23,LR_IAC_LENGTH_NR_FC);/* tables from which lr_energy_and_iac is updated has Q23 for i=2 */
floatToFixed_arr32((float*)defaultHRIR_right_avg_power_48kHz,HrtfStatistics->average_energy_r_dyn,Q23,LR_IAC_LENGTH_NR_FC);/* tables from which lr_energy_and_iac is updated has Q23 for i=2 */
floatToFixed_arr32((float*)defaultHRIR_coherence_48kHz,HrtfStatistics->inter_aural_coherence_dyn,Q27,LR_IAC_LENGTH_NR_FC);/* tables from which lr_energy_and_iac is updated has Q27 for i=2 */
returnIVAS_ERROR(IVAS_ERR_FAILED_ALLOC,"Could not allocate memory for hrtf data");
}
floatToFixed_arr32((float*)defaultHRIR_left_avg_power_32kHz,HrtfStatistics->average_energy_l_dyn,Q23,LR_IAC_LENGTH_NR_FC);/* tables from which lr_energy_and_iac is updated has Q23 for i=2 */
floatToFixed_arr32((float*)defaultHRIR_right_avg_power_32kHz,HrtfStatistics->average_energy_r_dyn,Q23,LR_IAC_LENGTH_NR_FC);/* tables from which lr_energy_and_iac is updated has Q23 for i=2 */
floatToFixed_arr32((float*)defaultHRIR_coherence_32kHz,HrtfStatistics->inter_aural_coherence_dyn,Q27,LR_IAC_LENGTH_NR_FC);/* tables from which lr_energy_and_iac is updated has Q27 for i=2 */
returnIVAS_ERROR(IVAS_ERR_FAILED_ALLOC,"Could not allocate memory for hrtf data");
}
floatToFixed_arr32((float*)defaultHRIR_left_avg_power_16kHz,HrtfStatistics->average_energy_l_dyn,Q23,LR_IAC_LENGTH_NR_FC_16KHZ);/* tables from which lr_energy_and_iac is updated has Q23 for i=2 */
floatToFixed_arr32((float*)defaultHRIR_right_avg_power_16kHz,HrtfStatistics->average_energy_r_dyn,Q23,LR_IAC_LENGTH_NR_FC_16KHZ);/* tables from which lr_energy_and_iac is updated has Q23 for i=2 */
floatToFixed_arr32((float*)defaultHRIR_coherence_16kHz,HrtfStatistics->inter_aural_coherence_dyn,Q27,LR_IAC_LENGTH_NR_FC_16KHZ);/* tables from which lr_energy_and_iac is updated has Q27 for i=2 */