Clearing buffer index and length of codec2 data when the reproduction of a voice prompt is completed

This commit is contained in:
Silvano Seva 2022-08-31 14:35:32 +02:00
parent cad026f902
commit 158b38d113
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}