ref: ccb244a73272fa77f1ced18ad2794dcd653749f9
parent: bc102f5fab5848013c51ed22d3b7bbaf9a0a6aca
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Tue Oct 24 05:27:31 EDT 2023
cleanup
--- a/dnn/dump_data.c
+++ b/dnn/dump_data.c
@@ -101,7 +101,6 @@
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);
}
--- a/dnn/lpcnet_enc.c
+++ b/dnn/lpcnet_enc.c
@@ -50,7 +50,6 @@
int lpcnet_encoder_init(LPCNetEncState *st) {memset(st, 0, sizeof(*st));
- st->exc_mem = lin2ulaw(0.f);
pitchdnn_init(&st->pitchdnn);
return 0;
}
--- a/dnn/lpcnet_plc.c
+++ b/dnn/lpcnet_plc.c
@@ -132,10 +132,6 @@
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.*/
--- a/dnn/lpcnet_private.h
+++ b/dnn/lpcnet_private.h
@@ -36,13 +36,9 @@
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];
};
--
⑨