Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/lpcnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions src/lpcnet_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)];

Expand All @@ -160,7 +159,6 @@ int main(int argc, char **argv) {

fflush(stdin);
fflush(stdout);
f++;
}

lpcnet_freedv_destroy(lf);
Expand Down