Reset PLC instead of reinitializing

This commit is contained in:
Jean-Marc Valin 2023-06-01 12:50:49 -04:00
parent e57dfb824c
commit d43eb241e3
No known key found for this signature in database
GPG key ID: 531A52533318F00A
2 changed files with 2 additions and 2 deletions

2
lpcnet

@ -1 +1 @@
Subproject commit 8434b36183ec4af6b3d781f3d03dfb7c7f18b306
Subproject commit c43458e671f0734e98cc878bb0f10a9dbcac7ca6

View file

@ -918,7 +918,7 @@ int opus_decoder_ctl(OpusDecoder *st, int request, ...)
st->stream_channels = st->channels;
st->frame_size = st->Fs/400;
#ifdef NEURAL_PLC
lpcnet_plc_init( &st->lpcnet, LPCNET_PLC_CODEC );
lpcnet_plc_reset( &st->lpcnet );
#endif
}
break;