Commit e8728e90 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] missing defaults for NTAPS + missing else

parent 773f7137
Loading
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -205,11 +205,11 @@ static ivas_error ivas_binRenderer_convModuleOpen(
            {
                hBinRenConvModule->numTaps = hHrtf->ntaps_hrir_hoa3;
            }
            if ( input_config == IVAS_AUDIO_CONFIG_HOA2 )
            else if ( input_config == IVAS_AUDIO_CONFIG_HOA2 )
            {
                hBinRenConvModule->numTaps = hHrtf->ntaps_hrir_hoa2;
            }
            if ( input_config == IVAS_AUDIO_CONFIG_FOA )
            else if ( input_config == IVAS_AUDIO_CONFIG_FOA )
            {
                hBinRenConvModule->numTaps = hHrtf->ntaps_hrir_foa;
            }
@@ -492,6 +492,13 @@ void ivas_init_binaural_hrtf(
    HrtfFastConv->FASTCONV_FOA_latency_s = 0x00;

    HrtfFastConv->allocate_init_flag = 0x00;
#ifdef FIX_1123_FASTCONV_16BIT_ROM
    HrtfFastConv->ntaps_hrir = BINAURAL_NTAPS;
    HrtfFastConv->ntaps_hrir_foa = BINAURAL_NTAPS_SBA;
    HrtfFastConv->ntaps_hrir_hoa2 = BINAURAL_NTAPS_SBA;
    HrtfFastConv->ntaps_hrir_hoa3 = BINAURAL_NTAPS_SBA;
    HrtfFastConv->ntaps_brir = BINAURAL_NTAPS_MAX;
#endif

    for ( i = 0; i < CLDFB_NO_CHANNELS_MAX; i++ )
    {