Skip to content
Snippets Groups Projects
Commit 171b1ba0 authored by Marcus Asteborg's avatar Marcus Asteborg Committed by Jean-Marc Valin
Browse files

Initialize excitation memory value to unquantized 0

parent 9a7f3e4a
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ LPCNET_EXPORT int lpcnet_get_size()
LPCNET_EXPORT int lpcnet_init(LPCNetState *lpcnet)
{
memset(lpcnet, 0, lpcnet_get_size());
lpcnet->last_exc = 128;
lpcnet->last_exc = lin2ulaw(0.f);
return 0;
}
......
......@@ -468,6 +468,7 @@ LPCNET_EXPORT int lpcnet_encoder_get_size() {
LPCNET_EXPORT int lpcnet_encoder_init(LPCNetEncState *st) {
memset(st, 0, sizeof(*st));
st->exc_mem = lin2ulaw(0.f);
return 0;
}
......
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