Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvalin committed Oct 24, 2023
1 parent bc102f5 commit ccb244a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion dnn/dump_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ void write_audio(LPCNetEncState *st, const opus_int16 *pcm, const int *noise, FI

OPUS_MOVE(&st->sig_mem[1], &st->sig_mem[0], LPC_ORDER-1);
st->sig_mem[0] = p + ulaw2lin(e);
st->exc_mem = e;
}
fwrite(data, 4*FRAME_SIZE, 1, file);
}
Expand Down
1 change: 0 additions & 1 deletion dnn/lpcnet_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ int lpcnet_encoder_get_size() {

int lpcnet_encoder_init(LPCNetEncState *st) {
memset(st, 0, sizeof(*st));
st->exc_mem = lin2ulaw(0.f);
pitchdnn_init(&st->pitchdnn);
return 0;
}
Expand Down
4 changes: 0 additions & 4 deletions dnn/lpcnet_plc.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ static void queue_features(LPCNetPLCState *st, const float *features) {
OPUS_COPY(&st->cont_features[(CONT_VECTORS-1)*NB_FEATURES], features, NB_FEATURES);
}

static void replace_features(LPCNetPLCState *st, const float *features) {
OPUS_COPY(&st->cont_features[(CONT_VECTORS-1)*NB_FEATURES], features, NB_FEATURES);
}

/* In this causal version of the code, the DNN model implemented by compute_plc_pred()
needs to generate two feature vectors to conceal the first lost packet.*/

Expand Down
4 changes: 0 additions & 4 deletions dnn/lpcnet_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ struct LPCNetEncState{
float exc_buf[PITCH_BUF_SIZE];
float lp_buf[PITCH_BUF_SIZE];
float lp_mem[4];
float last_gain;
int last_period;
float lpc[LPC_ORDER];
float vq_mem[NB_BANDS];
float features[NB_TOTAL_FEATURES];
float sig_mem[LPC_ORDER];
int exc_mem;
float burg_cepstrum[2*NB_BANDS];
};

Expand Down

0 comments on commit ccb244a

Please sign in to comment.