Commit eca42a4b authored by Luca Barbato's avatar Luca Barbato Committed by petterreinholdtsen
Browse files

Add rnnoise_get_frame_size()

It provides a mean to know how many samples are processed at time.
parent 40a38162
......@@ -53,6 +53,8 @@ typedef struct RNNModel RNNModel;
RNNOISE_EXPORT int rnnoise_get_size();
RNNOISE_EXPORT int rnnoise_get_frame_size();
RNNOISE_EXPORT int rnnoise_init(DenoiseState *st, RNNModel *model);
RNNOISE_EXPORT DenoiseState *rnnoise_create(RNNModel *model);
......@@ -257,6 +257,10 @@ int rnnoise_get_size() {
return sizeof(DenoiseState);
int rnnoise_get_frame_size() {
return FRAME_SIZE;
int rnnoise_init(DenoiseState *st, RNNModel *model) {
memset(st, 0, sizeof(*st));
if (model)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment