mirror of https://github.com/drowe67/LPCNet.git
Clean up warnings encountered during Windows and macOS builds.
parent
00890a63c7
commit
dfd2a8b5be
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue