Commit 3b3d5416 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] correct logic of reconfigureFlag to match naming

parent 2e3e3913
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -2207,7 +2207,7 @@ static ivas_error initMcBinauralRendering(
    /* if TD renderer was open and we need to use CREND, close it */
    if (
#ifdef FIX_513_REND_MC_ALLOC
        reconfigureFlag || ( !useTDRend &&
        !reconfigureFlag || ( !useTDRend &&
#endif
                              inputMc->tdRendWrapper.hBinRendererTd != NULL )
#ifdef FIX_513_REND_MC_ALLOC
@@ -2220,7 +2220,7 @@ static ivas_error initMcBinauralRendering(

#ifdef SPLIT_REND_WITH_HEAD_ROT
#ifdef FIX_513_REND_MC_ALLOC
    if ( reconfigureFlag || !useTDRend )
    if ( !reconfigureFlag || !useTDRend )
    {
#endif
        for ( i = 0; i < MAX_HEAD_ROT_POSES - 1; ++i )
@@ -2252,7 +2252,7 @@ static ivas_error initMcBinauralRendering(
#endif

#ifdef FIX_513_REND_MC_ALLOC
    if ( reconfigureFlag || ( !useTDRend && outConfig != IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB && inputMc->hReverb != NULL ) )
    if ( !reconfigureFlag || ( !useTDRend && outConfig != IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB && inputMc->hReverb != NULL ) )
    {
#endif
        ivas_reverb_close( &inputMc->hReverb );
@@ -2261,7 +2261,7 @@ static ivas_error initMcBinauralRendering(
#endif

#ifdef FIX_513_REND_MC_ALLOC
    if ( reconfigureFlag || ( inConfig == IVAS_AUDIO_CONFIG_LS_CUSTOM && !inputMc->base.ctx.pHeadRotData->headRotEnabled ) )
    if ( !reconfigureFlag || ( inConfig == IVAS_AUDIO_CONFIG_LS_CUSTOM && !inputMc->base.ctx.pHeadRotData->headRotEnabled ) )
    {
#endif
        if ( inputMc->efapInWrapper.hEfap != NULL )
@@ -2521,7 +2521,7 @@ static ivas_error setRendInputActiveMc(
        if ( ( error = initMcBinauralRendering( inputMc, inConfig, outConfig, hRendCfg
#ifdef FIX_513_REND_MC_ALLOC
                                                ,
                                                TRUE
                                                FALSE
#endif
                                                ) ) != IVAS_ERR_OK )
        {
@@ -4436,7 +4436,7 @@ ivas_error IVAS_REND_ConfigureCustomInputLoudspeakerLayout(
                                                hIvasRend->hRendererConfig
#ifdef FIX_513_REND_MC_ALLOC
                                                ,
                                                TRUE
                                                FALSE
#endif
                                                ) ) != IVAS_ERR_OK )
        {
@@ -5285,7 +5285,7 @@ ivas_error IVAS_REND_SetHeadRotation(
                                     hIvasRend->inputsMc[i].base.inConfig,
                                     hIvasRend->outputConfig,
                                     hIvasRend->hRendererConfig,
                                     FALSE );
                                     TRUE );
        }
    }
#endif
@@ -5347,7 +5347,7 @@ ivas_error IVAS_REND_DisableHeadRotation(
                                         hIvasRend->inputsMc[i].base.inConfig,
                                         hIvasRend->outputConfig,
                                         hIvasRend->hRendererConfig,
                                         FALSE );
                                         TRUE );
            }
        }
    }