Fix causal PLC for models with non-zero lookahead

This commit is contained in:
Jean-Marc Valin 2022-09-16 00:55:39 -04:00
parent f3c738d45f
commit dd114baf4d
3 changed files with 26 additions and 13 deletions

View file

@ -26,6 +26,7 @@ struct LPCNetState {
NNetState nnet;
int last_exc;
float last_sig[LPC_ORDER];
float last_features[NB_FEATURES];
#if FEATURES_DELAY>0
float old_lpc[FEATURES_DELAY][LPC_ORDER];
#endif
@ -76,7 +77,7 @@ struct LPCNetPLCState {
float features[NB_TOTAL_FEATURES];
int loss_count;
PLCNetState plc_net;
PLCNetState plc_copy;
PLCNetState plc_copy[FEATURES_DELAY+1];
int enable_blending;
int non_causal;
double dc_mem;