mirror of
https://github.com/xiph/opus.git
synced 2025-05-31 23:57:42 +00:00
Fix causal PLC for models with non-zero lookahead
This commit is contained in:
parent
f3c738d45f
commit
dd114baf4d
3 changed files with 26 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue