From dfd2a8b5bec9d559b6e41022912aa8f0722fae49 Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Thu, 13 Jul 2023 00:36:52 -0700 Subject: [PATCH] Clean up warnings encountered during Windows and macOS builds. --- src/lpcnet.c | 2 -- src/lpcnet_enc.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/lpcnet.c b/src/lpcnet.c index a39be6f..c6104dc 100644 --- a/src/lpcnet.c +++ b/src/lpcnet.c @@ -146,7 +146,6 @@ void lpcnet_set_pitch_embedding(LPCNetState *lpcnet, int val) { void lpcnet_synthesize(LPCNetState *lpcnet, short *output, float *features, int N, int mag) { - static int count = 0; int i; float condition[FEATURE_DENSE2_OUT_SIZE]; float lpc[LPC_ORDER]; @@ -264,7 +263,6 @@ void lpcnet_synthesize(LPCNetState *lpcnet, short *output, float *features, int exc_f = ulaw2lin(exc); fwrite(&exc_f, sizeof(float), 1, lpcnet->ftest); fwrite(&pcm, sizeof(float), 1, lpcnet->ftest); - count++; } output[i] = (int)floor(.5 + pcm); } diff --git a/src/lpcnet_enc.c b/src/lpcnet_enc.c index 0a195be..a6d484e 100644 --- a/src/lpcnet_enc.c +++ b/src/lpcnet_enc.c @@ -147,7 +147,6 @@ int main(int argc, char **argv) { fprintf(stderr, "\n"); char frame[lpcnet_bits_per_frame(lf)]; - int f=0; int bits_written=0; short pcm[lpcnet_samples_per_frame(lf)]; @@ -160,7 +159,6 @@ int main(int argc, char **argv) { fflush(stdin); fflush(stdout); - f++; } lpcnet_freedv_destroy(lf);