Clean up warnings encountered during Windows and macOS builds.

pull/55/head
Mooneer Salem 2023-07-13 00:36:52 -07:00
parent 00890a63c7
commit dfd2a8b5be
2 changed files with 0 additions and 4 deletions

View File

@ -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) void lpcnet_synthesize(LPCNetState *lpcnet, short *output, float *features, int N, int mag)
{ {
static int count = 0;
int i; int i;
float condition[FEATURE_DENSE2_OUT_SIZE]; float condition[FEATURE_DENSE2_OUT_SIZE];
float lpc[LPC_ORDER]; float lpc[LPC_ORDER];
@ -264,7 +263,6 @@ void lpcnet_synthesize(LPCNetState *lpcnet, short *output, float *features, int
exc_f = ulaw2lin(exc); exc_f = ulaw2lin(exc);
fwrite(&exc_f, sizeof(float), 1, lpcnet->ftest); fwrite(&exc_f, sizeof(float), 1, lpcnet->ftest);
fwrite(&pcm, sizeof(float), 1, lpcnet->ftest); fwrite(&pcm, sizeof(float), 1, lpcnet->ftest);
count++;
} }
output[i] = (int)floor(.5 + pcm); output[i] = (int)floor(.5 + pcm);
} }

View File

@ -147,7 +147,6 @@ int main(int argc, char **argv) {
fprintf(stderr, "\n"); fprintf(stderr, "\n");
char frame[lpcnet_bits_per_frame(lf)]; char frame[lpcnet_bits_per_frame(lf)];
int f=0;
int bits_written=0; int bits_written=0;
short pcm[lpcnet_samples_per_frame(lf)]; short pcm[lpcnet_samples_per_frame(lf)];
@ -160,7 +159,6 @@ int main(int argc, char **argv) {
fflush(stdin); fflush(stdin);
fflush(stdout); fflush(stdout);
f++;
} }
lpcnet_freedv_destroy(lf); lpcnet_freedv_destroy(lf);