Add LPCNet decoder object

This commit is contained in:
Jean-Marc Valin 2019-03-18 14:13:07 -04:00
parent fe608dfc51
commit 54b057c9cd
7 changed files with 144 additions and 39 deletions

View file

@ -33,7 +33,10 @@ struct LPCNetState {
float deemph_mem;
};
struct LPCNetDecState {
LPCNetState lpcnet_state;
float vq_mem[NB_BANDS];
};
struct LPCNetEncState{
float analysis_mem[OVERLAP_SIZE];
@ -70,6 +73,6 @@ void process_superframe(LPCNetEncState *st, unsigned char *buf, FILE *ffeat, int
void compute_frame_features(LPCNetEncState *st, const float *in);
void decode_packet(float features[4][NB_TOTAL_FEATURES], float *vq_mem, unsigned char buf[8]);
void decode_packet(float features[4][NB_TOTAL_FEATURES], float *vq_mem, const unsigned char buf[8]);
#endif