Commit 99fb7516 authored by vaclav's avatar vaclav
Browse files

remove #ifdef VARIABLE_SPEED_DECODING around IVAS_DEC_TSM_SetQuality

parent 4184bee8
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -2509,7 +2509,7 @@ ivas_error IVAS_DEC_VoIP_SetScale(
    return error;
}

#ifdef VARIABLE_SPEED_DECODING

/*---------------------------------------------------------------------*
 * IVAS_DEC_TSM_SetQuality( )
 *
@@ -2530,11 +2530,7 @@ ivas_error IVAS_DEC_TSM_SetQuality(
    const float quality       /* i  : target TSM quality    */
)
{
    ivas_error error;

    error = IVAS_ERR_OK;

    if ( hIvasDec->st_ivas->hDecoderConfig->Opt_tsm == false )
    if ( !hIvasDec->st_ivas->hDecoderConfig->Opt_tsm )
    {
        return IVAS_ERR_TSM_NOT_ENABLED;
    }
@@ -2543,9 +2539,9 @@ ivas_error IVAS_DEC_TSM_SetQuality(
        hIvasDec->tsm_quality = quality;
    }

    return error;
    return IVAS_ERR_OK;
}
#endif


/*---------------------------------------------------------------------*
 * IVAS_DEC_VoIP_GetSamples( )
+3 −4
Original line number Diff line number Diff line
@@ -266,12 +266,11 @@ ivas_error IVAS_DEC_VoIP_SetScale(
    const int16_t scale                         /* i  : TSM scale to set                                                        */
);

#ifdef VARIABLE_SPEED_DECODING
/*! r: error code */
ivas_error IVAS_DEC_TSM_SetQuality(
    IVAS_DEC_HANDLE hIvasDec,                   /* i/o: IVAS decoder handle                                                     */
	const float quality                         /* i  : target TSM quality                                                      */
);
#endif

/*! r: error code */
ivas_error IVAS_DEC_VoIP_GetSamples(