free((void*)model->azimBsShape);/* void* cast needed to please both gcc and Visual studio compilers. Deallocating const float** should be fine and gcc agrees, but Visual studio complains. */
if((modelITD->azimKSeq_dyn=(float*)malloc(((modelITD->azimDim3+1)/2-2)*sizeof(float)))==NULL)/* basis functions are flipped around 180 deg, number of basis functions above/below is (N+1)/2 */
{
return(IVAS_ERROR(IVAS_ERR_FAILED_ALLOC,"Can not allocate memory for Binaural TD renderer\n"));