modelITD->azimKSeq_dyn_fx=(Word16*)malloc(((modelITD->azimDim3+1)/2-2)*sizeof(Word16));/* basis functions are flipped around 180 deg, number of basis functions above/below is (N+1)/2 */
#else
modelITD->azimKSeq_dyn_fx=(Word32*)malloc(((modelITD->azimDim3+1)/2-2)*sizeof(Word32));/* basis functions are flipped around 180 deg, number of basis functions above/below is (N+1)/2 */
#endif
if(modelITD->azimKSeq_dyn_fx==NULL)
{
returnIVAS_ERROR(IVAS_ERR_FAILED_ALLOC,"Could not allocate memory for hrtf data");
float*azimKSeq_dyn_local=(float*)malloc(((modelITD->azimDim3+1)/2-2)*sizeof(float));/* basis functions are flipped around 180 deg, number of basis functions above/below is (N+1)/2 */
modelITD->azimKSeq_dyn_fx=(Word32*)malloc(((modelITD->azimDim3+1)/2-2)*sizeof(Word32));/* basis functions are flipped around 180 deg, number of basis functions above/below is (N+1)/2 */