Commit 4a0546bd authored by vaclav's avatar vaclav
Browse files

Merge branch...

Merge branch 'float-1500-wrong-and-unstable-spatial-image-at-the-beginning-of-active-speech-for-ism1-with-dtx' into 'main'

[non-BE] Resolve "Wrong and unstable spatial image at the beginning of active speech for ISM1 with DTX"

See merge request !2497
parents 80a93c73 98579508
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@
#define FIX_1465_SWB_TBE_RANDOM_VECTOR_CREATION         /* Dolby: issue 1465: Fix constant in create_random_vector() to allow more reliable fixed point port */


#define FIX_1500_ISM_MD_DTX                             /* VA: float issue 1500: fix ISM elevation metadata smoothing in DTX */

/* ##################### End NON-BE switches ########################### */

+4 −0
Original line number Diff line number Diff line
@@ -119,7 +119,11 @@ static void ism_metadata_smooth(
        /* smooth elevation */
        diff = hIsmMetaData->last_true_elevation - hIsmMetaData->last_elevation;

#ifdef FIX_1500_ISM_MD_DTX
        if ( ism_total_brate > IVAS_SID_5k2 && fabsf( diff ) > IVAS_ISM_DTX_HO_MAX * CNG_MD_MAX_DIFF_ELEVATION )
#else
        if ( ism_total_brate > IVAS_SID_5k2 && diff > IVAS_ISM_DTX_HO_MAX * CNG_MD_MAX_DIFF_ELEVATION )
#endif
        {
            /* skip the smoothing */
        }