Commit c21992b0 authored by kinuthia's avatar kinuthia
Browse files

[fix] enable reverb for ISM mode switching

- enable reverb when switching from ParamISM to DiscISM for the first
  time.
parent 28e1baf1
Loading
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -184,6 +184,15 @@ static ivas_error ivas_ism_bitrate_switching(
                {
                    return error;
                }
#ifdef FIX_571_REVERB_NOT_ACTIVATED_ISM
                if ( st_ivas->hIntSetup.output_config == AUDIO_CONFIG_BINAURAL_ROOM_REVERB )
                {
                    if ( ( error = ivas_reverb_open( &st_ivas->hReverb, st_ivas->hDecoderConfig->output_config, NULL, st_ivas->hRenderConfig, st_ivas->hDecoderConfig->output_Fs ) ) != IVAS_ERR_OK )
                    {
                        return error;
                    }
                }
#endif
            }
        }
        else
@@ -258,6 +267,14 @@ static ivas_error ivas_ism_bitrate_switching(
                {
                    st_ivas->hHrtfTD = NULL;
                }

#ifdef FIX_571_REVERB_NOT_ACTIVATED_ISM
                if (st_ivas->hOutSetup.output_config == AUDIO_CONFIG_BINAURAL_ROOM_REVERB)
                {
                    ivas_reverb_close( &st_ivas->hReverb );
                }

#endif
            }
        }
        else