#define TMP_FIX_1119_SPLIT_RENDERING_VOIP /* FhG: Add error check for unsupported config: split rendering with VoIP mode */
#define FIX_1228_SAMPLING_RATE_MISMATCH_IN_HRTF_FILE /* VA: issue 1228: Exit the processing when a HRTF binary file with wrong sampling rate is provided */
#define FIX_1225_DISCLAIMER /* VA: issue 1225: Add disclaimer for external renderer + Add info about IVAS reference version */
#define FIX_1179_USAN_PHASEECU /* Eri: issue 1179: better handling of 16 bit wrap around for very long(>200ms) FER-bursts */
/* #################### End BE switches ################################## */
*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
{
#ifdef FIX_1179_USAN_PHASEECU
*time_offs=(int16_t)(*time_offs+output_frame);/* cast added for USAN, "+=" avoided as it may creat a truncation from int to int16_t */
#else
*time_offs+=output_frame;
#endif
if(*time_offs<=0)
{
/* detect wrap around of st->time_offs */
*time_offs=MAX16B;/* continued muting will ensure that the now fixed seeds are not creating tones */
#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 */