Commit 86f695e7 authored by norvell's avatar norvell
Browse files

Enable TD renderer reset in BR switching under FIX_1045_ISM_BITRATE_SWITCHING

parent 8e82ef62
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@
#define FIX_1038_OFFSET_TO_NULL_PTR_IN_EVS_TCX_BFI      /* FhG: move setting of pointers for parameter decoding so they are skipped in lost frames when they are not needed */
#define FIX_970_USAN_IN_NELP_SEED
#define FIX_1044_ISM_REND_MEMORY                        /* VA: issue 1044: Lower the memory of the ISM renderer handle. */
#define FIX_1045_ISM_BITRATE_SWITCHING                  /* Eri: Difference between ROM/File HRTF in ISM bitrate switching */


/* #################### End BE switches ################################## */
+10 −0
Original line number Diff line number Diff line
@@ -274,6 +274,15 @@ static ivas_error ivas_ism_bitrate_switching_dec(
            }

            /* Close the TD Binaural renderer */
#ifdef FIX_1045_ISM_BITRATE_SWITCHING
            ivas_td_binaural_close( &st_ivas->hBinRendererTd );
            st_ivas->hHrtfTD = NULL;

            if ( st_ivas->hOutSetup.output_config == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB )
            {
                ivas_reverb_close( &st_ivas->hReverb );
            }
#else
            if ( st_ivas->hBinRendererTd->HrFiltSet_p->ModelParams.modelROM == TRUE )
            {
                ivas_td_binaural_close( &st_ivas->hBinRendererTd );
@@ -284,6 +293,7 @@ static ivas_error ivas_ism_bitrate_switching_dec(
                    ivas_reverb_close( &st_ivas->hReverb );
                }
            }
#endif
        }
        else
        {