Commit b24077f7 authored by kinuthia's avatar kinuthia
Browse files

[fix] add reverb only if late_reverb_on flag is 1

parent 3c9ff5f9
Loading
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -323,23 +323,23 @@ void ivas_td_binaural_renderer_unwrap(


#ifdef FIX_330_ENABLE_TD_RENDERER_REVERB_REND
    if ( hReverb != NULL )
    if ( ( hReverb != NULL ) && ( hReverb->pConfig.roomAcoustics.late_reverb_on ) )
    {
        /* add reverb to rendered signals */
        v_add( reverb_signal[0], output[0], output[0], output_frame );
        v_add( reverb_signal[1], output[1], output[1], output_frame );
    }
#else
    if ( hRenderConfig != NULL ) /* Renderer Configuration not enabled in TD standalone renderer */
#endif
    {

#ifdef FIX_330_ENABLE_TD_RENDERER_REVERB_REND
        if ( hReverb != NULL )
#else
        if ( hRenderConfig->roomAcoustics.late_reverb_on )
#endif
        {
            /* add reverb to rendered signals */
            v_add( reverb_signal[0], output[0], output[0], output_frame );
            v_add( reverb_signal[1], output[1], output[1], output_frame );
        }
    }
#endif

    return;
}