*time_offs=(int16_t)(*time_offs+output_frame);/* USAN avoid risk of internal int32_t in "+=" */
if(*time_offs<=0)
{/* detected wrap around of st->time_offs */
*time_offs=(int16_t)INT16_MAX;/* keep a very high value so that the long term muting stays on */
}
}
else
{
*time_offs=(int16_t)(*time_offs+output_frame);/* EVS_MONO BE compatible, but EVS CR needed as wrap will cause burst length muting envelope instability issues */
}
#else
*time_offs+=output_frame;
#endif
}
}
else
@@ -2112,7 +2135,11 @@ static void hq_phase_ecu(
if(*time_offs<=0)
{
/* detect wrap around of st->time_offs */
#ifdef FIX_1179_USAN_PHASEECU
*time_offs=(int16_t)INT16_MAX;/* high value --> continued muting will ensure that the now saturated seed is not creating tones */
#else
*time_offs=MAX16B;/* continued muting will ensure that the now fixed seeds are not creating tones */