Skip to content

Commit

Permalink
Implement lpcnet_plc_get_size()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvalin committed Jan 27, 2022
1 parent b637c2a commit 2159b4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/lpcnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ LPCNET_EXPORT void lpcnet_destroy(LPCNetState *st);
*/
LPCNET_EXPORT void lpcnet_synthesize(LPCNetState *st, const float *features, short *output, int N);

LPCNET_EXPORT int lpcnet_plc_get_size(void);

LPCNET_EXPORT void lpcnet_plc_init(LPCNetPLCState *st);

Expand Down
4 changes: 4 additions & 0 deletions src/lpcnet_plc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#include "lpcnet_private.h"
#include "lpcnet.h"

LPCNET_EXPORT int lpcnet_plc_get_size() {
return sizeof(LPCNetPLCState);
}

LPCNET_EXPORT void lpcnet_plc_init(LPCNetPLCState *st) {
lpcnet_init(&st->lpcnet);
lpcnet_encoder_init(&st->enc);
Expand Down

0 comments on commit 2159b4f

Please sign in to comment.