From 158b38d1132b2d5caaf27ddac419171f07e5e753 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Wed, 31 Aug 2022 14:35:32 +0200 Subject: [PATCH] Clearing buffer index and length of codec2 data when the reproduction of a voice prompt is completed --- openrtx/src/core/voicePrompts.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openrtx/src/core/voicePrompts.c b/openrtx/src/core/voicePrompts.c index 4f64a3d1..5b19c9aa 100644 --- a/openrtx/src/core/voicePrompts.c +++ b/openrtx/src/core/voicePrompts.c @@ -495,8 +495,10 @@ void vp_tick() // see if we've finished. if(vpCurrentSequence.pos == vpCurrentSequence.length) { - voicePromptActive = false; - vpCurrentSequence.pos = 0; + voicePromptActive = false; + vpCurrentSequence.pos = 0; + vpCurrentSequence.c2DataIndex = 0; + vpCurrentSequence.c2DataLength = 0; } }