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

@ -32,8 +32,23 @@
typedef struct LPCNetState LPCNetState;
typedef struct LPCNetDecState LPCNetDecState;
typedef struct LPCNetEncState LPCNetEncState;
int lpcnet_decoder_get_size();
int lpcnet_decoder_init(LPCNetDecState *st);
LPCNetDecState *lpcnet_decoder_create();
void lpcnet_decoder_destroy(LPCNetDecState *st);
int lpcnet_decode(LPCNetDecState *st, const unsigned char *buf, short *pcm);
int lpcnet_encoder_get_size();
int lpcnet_encoder_init(LPCNetEncState *st);
@ -46,6 +61,10 @@ int lpcnet_encode(LPCNetEncState *st, const short *pcm, unsigned char *buf);
int lpcnet_get_size();
int lpcnet_init(LPCNetState *lpcnet);
LPCNetState *lpcnet_create();
void lpcnet_destroy(LPCNetState *lpcnet);