Commit df7ef84a authored by Marek Szczerba's avatar Marek Szczerba
Browse files

Use default FastConv reverberation times in association with BRIRs, parametric...

Use default FastConv reverberation times in association with BRIRs, parametric reverberation times otherwise
parent 8f6db85a
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1058,9 +1058,22 @@ static ivas_error ivas_binaural_hrtf_open(
        {
            HrtfFastConv->fastconvReverberationEneCorrections[i] = fastconvReverberationEneCorrections[i] * scaleFactor;
        }
#else
#ifdef FIX_1158_FASTCONV_REVERB_HRTF
        if ( renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM )
        {
            mvr2r( fastconvReverberationTimes, HrtfFastConv->fastconvReverberationTimes, CLDFB_NO_CHANNELS_MAX );
            mvr2r( fastconvReverberationEneCorrections, HrtfFastConv->fastconvReverberationEneCorrections, CLDFB_NO_CHANNELS_MAX );
        }
        else
        {
            mvr2r( parametricReverberationTimes, HrtfFastConv->fastconvReverberationTimes, CLDFB_NO_CHANNELS_MAX );
            mvr2r( parametricReverberationEneCorrections, HrtfFastConv->fastconvReverberationEneCorrections, CLDFB_NO_CHANNELS_MAX );
        }
#else
        mvr2r( fastconvReverberationTimes, HrtfFastConv->fastconvReverberationTimes, CLDFB_NO_CHANNELS_MAX );
        mvr2r( fastconvReverberationEneCorrections, HrtfFastConv->fastconvReverberationEneCorrections, CLDFB_NO_CHANNELS_MAX );
#endif
#endif

        *hHrtfFastConv = HrtfFastConv;