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

[fix] missing defaults for NTAPS + missing else

parent cf6b0f75
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -347,11 +347,11 @@ static ivas_error ivas_binRenderer_convModuleOpen(
            {
                hBinRenConvModule->numTaps = hHrtf->ntaps_hrir_hoa3;
            }
            IF( EQ_16( input_config, IVAS_AUDIO_CONFIG_HOA2 ) )
            ELSE IF( EQ_16( input_config, IVAS_AUDIO_CONFIG_HOA2 ) )
            {
                hBinRenConvModule->numTaps = hHrtf->ntaps_hrir_hoa2;
            }
            IF( EQ_16( input_config, IVAS_AUDIO_CONFIG_FOA ) )
            ELSE IF( EQ_16( input_config, IVAS_AUDIO_CONFIG_FOA ) )
            {
                hBinRenConvModule->numTaps = hHrtf->ntaps_hrir_foa;
            }
@@ -964,6 +964,13 @@ void ivas_init_binaural_hrtf_fx(

    HrtfFastConv->allocate_init_flag = 0;
    move16();
#ifdef FIX_1123_FASTCONV_PARAMBIN_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++ )
    {