Commit 252f032d authored by TYAGIRIS's avatar TYAGIRIS
Browse files

potential fix for delay alignment in split rendering mode

parent efc7d2f0
Loading
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1410,8 +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 &&
                          hIvasRend->hRendererConfig->split_rend_config.poseCorrectionMode != ISAR_SPLIT_REND_POSE_CORRECTION_MODE_NONE );
    /*assumes that input has been added which means codec has been set to either lcld or lc3plus (even if render config specified default)*/
    splitPreRendCldfb = ( hIvasRend->hRendererConfig->split_rend_config.codec == ISAR_SPLIT_REND_CODEC_LCLD );

    /* Compute the maximum delay across all inputs */
    for ( i = 0; i < RENDERER_MAX_ISM_INPUTS; i++ )
@@ -3804,8 +3804,6 @@ ivas_error IVAS_REND_AddInput(
    void ( *setInputDelay )( void *, bool );
    int32_t inputIndex;
    bool splitPreRendCldfb;
    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 )
@@ -3831,6 +3829,9 @@ ivas_error IVAS_REND_AddInput(
        }
    }

    /*assumes that input has been added which means codec has been set to either lcld or lc3plus (even if render config specified default)*/
    splitPreRendCldfb = ( hIvasRend->hRendererConfig->split_rend_config.codec == ISAR_SPLIT_REND_CODEC_LCLD );

#ifdef CODE_IMPROVEMENTS
    inputType = getAudioConfigType( inConfig );
    switch ( inputType )