Skip to content
Snippets Groups Projects
Verified Commit ccb244a7 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

cleanup

parent bc102f5f
No related branches found
No related tags found
No related merge requests found
Pipeline #4158 failed
......@@ -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);
}
......
......@@ -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;
}
......
......@@ -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.*/
......
......@@ -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];
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment