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

[cleanup] remove redundant switch nesting and cleanup changes to setRendInputActiveIsm()

parent 7d35a8ac
Loading
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -1414,20 +1414,15 @@ static ivas_error setRendInputActiveIsm(
    inputIsm->hOMasa = NULL;

    error = IVAS_ERR_OK;
    if ( outConfig == IVAS_REND_AUDIO_CONFIG_BINAURAL
#ifdef SPLIT_REND_WITH_HEAD_ROT
         || outConfig == IVAS_REND_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || outConfig == IVAS_REND_AUDIO_CONFIG_BINAURAL_SPLIT_PCM
    if ( outConfig == IVAS_REND_AUDIO_CONFIG_BINAURAL || outConfig == IVAS_REND_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || outConfig == IVAS_REND_AUDIO_CONFIG_BINAURAL_SPLIT_PCM )
#else
    if ( outConfig == IVAS_REND_AUDIO_CONFIG_BINAURAL_ROOM_IR )
#endif
    )
    {
#ifndef SPLIT_REND_WITH_HEAD_ROT
        if ( ( error = ivas_rend_openCrend( &inputIsm->crendWrapper, AUDIO_CONFIG_7_1_4, getIvasAudioConfigFromRendAudioConfig( outConfig ), hRendCfg,
                                            NULL, *rendCtx.pOutSampleRate
#ifdef SPLIT_REND_WITH_HEAD_ROT /* TODO FhG2Dlb : switch nesting needs review */
                                            ,
                                            1
#endif
                                            ) ) != IVAS_ERR_OK )
                                            NULL, *rendCtx.pOutSampleRate ) ) != IVAS_ERR_OK )
        {
            return error;
        }