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

remove TODOs in lib_rend.c

parent e0f94ab2
Loading
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -1264,9 +1264,6 @@ static bool isIoConfigPairSupported(
    const AUDIO_CONFIG inConfig,
    const AUDIO_CONFIG outConfig )
{
#ifdef FIX_1419_MONO_STEREO_UMX
    // TODO fix renderer
#endif
    /* Rendering mono or stereo to binaural is not supported */
    if ( ( inConfig == IVAS_AUDIO_CONFIG_MONO || inConfig == IVAS_AUDIO_CONFIG_STEREO ) && getAudioConfigType( outConfig ) == IVAS_REND_AUDIO_CONFIG_TYPE_BINAURAL )
    {
@@ -2388,13 +2385,6 @@ static ivas_error initMcBinauralRendering(
            useTDRend = TRUE;
        }
    }
#ifdef FIX_1419_MONO_STEREO_UMX
    // TODO remove after fix
    if ( outConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR )
    {
        return IVAS_ERROR( IVAS_ERR_INVALID_INPUT_FORMAT, "ROOM_IR mono/stereo binaural upmix WIP" );
    }
#endif

    /* if TD renderer was open and we need to use CREND, close it */
    if ( !reconfigureFlag || ( !useTDRend && inputMc->tdRendWrapper.hBinRendererTd != NULL ) )
@@ -6239,11 +6229,7 @@ static ivas_error renderMcToBinaural(
        }
    }

#ifdef FIX_1419_MONO_STEREO_UMX
    if ( ( inConfig == IVAS_AUDIO_CONFIG_MONO || inConfig == IVAS_AUDIO_CONFIG_STEREO || inConfig == IVAS_AUDIO_CONFIG_LS_CUSTOM ) ||
#else
    if ( ( inConfig == IVAS_AUDIO_CONFIG_LS_CUSTOM ) ||
#endif
         ( combinedOrientationEnabled && ( inConfig == IVAS_AUDIO_CONFIG_5_1 || inConfig == IVAS_AUDIO_CONFIG_7_1 ) ) )
    {
        copyBufferTo2dArray( mcInput->base.inputBuffer, tmpRendBuffer );