Commit 214a3f59 authored by stoutjesdijk's avatar stoutjesdijk 🎧
Browse files

reapply FIX_103_RA_PARAMS_PARAM_BIN_REND since function moved to another file

parent e1fe94ed
Loading
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -1884,6 +1884,28 @@ ivas_error ivas_binaural_reverb_open(
        }
    }


#ifdef FIX_103_RA_PARAMS_PARAM_BIN_REND
    if ( ( roomAcoustics ) && ( roomAcoustics->override ) )
    {
        ivas_reverb_prepare_cldfb_params( roomAcoustics, hHrtfFastConv, output_config, roomAcoustics->use_brir, sampling_rate, t60, ene );
        ivas_binaural_reverb_setReverbTimes( hReverb, sampling_rate, t60, ene );
        ivas_binaural_reverb_setPreDelay( hReverb, (int16_t) roundf( 48000.0f * roomAcoustics->acousticPreDelay / CLDFB_NO_CHANNELS_MAX ) );
    }
    else
    {
        if ( renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM )
        {
            ivas_binaural_reverb_setReverbTimes( hReverb, sampling_rate, hHrtfFastConv->fastconvReverberationTimes, hHrtfFastConv->fastconvReverberationEneCorrections );
            ivas_binaural_reverb_setPreDelay( hReverb, 10 );
        }
        else
        {
            ivas_binaural_reverb_setReverbTimes( hReverb, sampling_rate, hHrtfParambin->parametricReverberationTimes, hHrtfParambin->parametricReverberationEneCorrections );
            ivas_binaural_reverb_setPreDelay( hReverb, 10 );
        }
    }
#else
    if ( renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM )
    {
        if ( !roomAcoustics->override )
@@ -1904,6 +1926,7 @@ ivas_error ivas_binaural_reverb_open(
        ivas_binaural_reverb_setPreDelay( hReverb, 10 );
    }

#endif
    return IVAS_ERR_OK;
}