FreeCalypso > hg > efr-experiments
comparison src/cod_12k2.c @ 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 | 56410792419a |
| children |
comparison
equal
deleted
inserted
replaced
| 5:799b56cbccb6 | 6:6119d2c1e7d9 |
|---|---|
| 116 | 116 |
| 117 new_speech = old_speech + L_TOTAL - L_FRAME;/* New speech */ | 117 new_speech = old_speech + L_TOTAL - L_FRAME;/* New speech */ |
| 118 speech = new_speech; /* Present frame */ | 118 speech = new_speech; /* Present frame */ |
| 119 p_window = old_speech + L_TOTAL - L_WINDOW; /* For LPC window */ | 119 p_window = old_speech + L_TOTAL - L_WINDOW; /* For LPC window */ |
| 120 p_window_mid = p_window; /* For LPC window */ | 120 p_window_mid = p_window; /* For LPC window */ |
| 121 | |
| 122 #ifdef EFR2_VARIANT | |
| 123 /* 5 ms artificial delay like in AMR */ | |
| 124 speech -= L_SUBFR; | |
| 125 p_window -= L_SUBFR; | |
| 126 p_window_mid -= L_SUBFR; | |
| 127 #endif | |
| 121 | 128 |
| 122 /* Initialize static pointers */ | 129 /* Initialize static pointers */ |
| 123 | 130 |
| 124 wsp = old_wsp + PIT_MAX; | 131 wsp = old_wsp + PIT_MAX; |
| 125 exc = old_exc + PIT_MAX + L_INTERPOL; | 132 exc = old_exc + PIT_MAX + L_INTERPOL; |
