FreeCalypso > hg > efr-experiments
changeset 6:6119d2c1e7d9
EFR2 encoder: mimic 5 ms delay of AMR
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 03 Apr 2024 07:14:01 +0000 |
parents | 799b56cbccb6 |
children | 1fd613cec7ab |
files | src/cod_12k2.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;