Commit 558eada9 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] update condition for splitPreRendCldfb to check pose correction mode

parent 1f51477b
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1410,7 +1410,8 @@ static int32_t getMaxGlobalDelayNs( IVAS_REND_CONST_HANDLE hIvasRend )
    bool splitPreRendCldfb;

    max_latency_ns = 0;
    splitPreRendCldfb = ( hIvasRend->outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED );
    splitPreRendCldfb = ( hIvasRend->outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED &&
                          hIvasRend->hRendererConfig->split_rend_config.poseCorrectionMode != ISAR_SPLIT_REND_POSE_CORRECTION_MODE_NONE );

    /* Compute the maximum delay across all inputs */
    for ( i = 0; i < RENDERER_MAX_ISM_INPUTS; i++ )
@@ -3803,7 +3804,8 @@ ivas_error IVAS_REND_AddInput(
    void ( *setInputDelay )( void *, bool );
    int32_t inputIndex;
    bool splitPreRendCldfb;
    splitPreRendCldfb = ( hIvasRend->outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED );
    splitPreRendCldfb = ( hIvasRend->outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED &&
                          hIvasRend->hRendererConfig->split_rend_config.poseCorrectionMode != ISAR_SPLIT_REND_POSE_CORRECTION_MODE_NONE );

    /* Validate function arguments */
    if ( hIvasRend == NULL || inputId == NULL )