Commit f19dad68 authored by norvell's avatar norvell
Browse files

Correct length of unit impulse filter used for initialization

parent 63061134
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -674,7 +674,11 @@ void TDREND_SRC_Init(
    /* Reset memory buffers */
    Src_p->itd = 0;
    Src_p->previtd = 0;
#ifdef FIX_550_FIRST_FRAME_ACCESS
    Src_p->filterlength = 1; /* Init to unit impulse of length 1 */
#else
    Src_p->filterlength = -1;
#endif
    set_f( Src_p->mem_itd, 0.0f, ITD_MEM_LEN );
    set_f( Src_p->mem_hrf_left, 0.0f, SFX_SPAT_BIN_MAX_FILTER_LENGTH - 1 );
    set_f( Src_p->mem_hrf_right, 0.0f, SFX_SPAT_BIN_MAX_FILTER_LENGTH - 1 );