# HG changeset patch # User Mychaela Falconia # Date 1712128441 0 # Node ID 6119d2c1e7d92a3b7a4ecd0164201a932f3522cc # Parent 799b56cbccb64b518ff8ca26384afd17dadce3b4 EFR2 encoder: mimic 5 ms delay of AMR diff -r 799b56cbccb6 -r 6119d2c1e7d9 src/cod_12k2.c --- a/src/cod_12k2.c Wed Apr 03 06:09:10 2024 +0000 +++ b/src/cod_12k2.c Wed Apr 03 07:14:01 2024 +0000 @@ -119,6 +119,13 @@ p_window = old_speech + L_TOTAL - L_WINDOW; /* For LPC window */ p_window_mid = p_window; /* For LPC window */ +#ifdef EFR2_VARIANT + /* 5 ms artificial delay like in AMR */ + speech -= L_SUBFR; + p_window -= L_SUBFR; + p_window_mid -= L_SUBFR; +#endif + /* Initialize static pointers */ wsp = old_wsp + PIT_MAX;