Commit 893305f6 authored by malenov's avatar malenov
Browse files

increase the S_p2a threshold to prevent ACELP->TCX mis-classifications on male voices

parent 107d150c
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1513,7 +1513,11 @@ enum
#define TOD_NSPEC                           80                      /* number of spectral bins of the tonal detector */
#define TOD_THR_MASS                        0.86f                   /* initial value for the adaptive threshold of the tonal detector */
#define P2A_FACT                            0.9f                    /* long-term averaging factor for peak-to-average ratio */
#ifdef FIX_SP2A
#define THR_P2A                             95.0f                   /* threshold to detect strongly peaky signals */
#else
#define THR_P2A                             80.0f                   /* threshold to detect strongly peaky signals */
#endif

/*----------------------------------------------------------------------------------*
 * LD music post-filter constants
+1 −1
Original line number Diff line number Diff line
@@ -168,8 +168,8 @@
#define FIX_ISM_DTX_CLICKS                              /* FhG: fix for clicks in ISM DTX for inactive to active TCX transitions */

#define ISSUE_24_CLEANUP_MCT_LFE                        /* Issue 24: Cleanup LFE path withing MCT */ 

#define FIX_401_DIRAC_RENDERER_META_READ_INDICES        /* Nokia: Issue 401: Fix metadata reading indices in DirAC renderer. */
#define FIX_SP2A                                        /* VA: Issue 412: Adjust threshold for the S_p2a feature in the tonal detector */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */