diff --git a/dnn/dump_data.c b/dnn/dump_data.c index fbf5b04e0..be1ff16ec 100644 --- a/dnn/dump_data.c +++ b/dnn/dump_data.c @@ -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); } diff --git a/dnn/lpcnet_enc.c b/dnn/lpcnet_enc.c index 809a18323..6a4674eb2 100644 --- a/dnn/lpcnet_enc.c +++ b/dnn/lpcnet_enc.c @@ -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; } diff --git a/dnn/lpcnet_plc.c b/dnn/lpcnet_plc.c index 9dcd6c3fc..940e16035 100644 --- a/dnn/lpcnet_plc.c +++ b/dnn/lpcnet_plc.c @@ -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.*/ diff --git a/dnn/lpcnet_private.h b/dnn/lpcnet_private.h index 381647ae1..4f328ad22 100644 --- a/dnn/lpcnet_private.h +++ b/dnn/lpcnet_private.h @@ -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]; };