From d43eb241e353d2a70f7b6786b0ed37ef5bbef67a Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin <jmvalin@amazon.com> Date: Thu, 1 Jun 2023 12:50:49 -0400 Subject: [PATCH] Reset PLC instead of reinitializing --- lpcnet | 2 +- src/opus_decoder.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lpcnet b/lpcnet index 8434b3618..c43458e67 160000 --- a/lpcnet +++ b/lpcnet @@ -1 +1 @@ -Subproject commit 8434b36183ec4af6b3d781f3d03dfb7c7f18b306 +Subproject commit c43458e671f0734e98cc878bb0f10a9dbcac7ca6 diff --git a/src/opus_decoder.c b/src/opus_decoder.c index 178987d19..9774f8907 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -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; -- GitLab