Fixed nasty popping between every voice prompt and after every silence.

When retrieving the codec2 data, ensure it is an exact multiple of codec2 frames and always discard the very last frame.
This commit is contained in:
vk7js 2022-09-09 16:41:55 +10:00 committed by Silvano Seva
parent 80f6fe2289
commit 3c20a5282e
1 changed files with 2 additions and 2 deletions

View File

@ -488,8 +488,8 @@ void vp_tick()
vpCurrentSequence.c2DataIndex = 0;
vpCurrentSequence.c2DataStart = tableOfContents[promptNumber];
vpCurrentSequence.c2DataLength = tableOfContents[promptNumber + 1]
- tableOfContents[promptNumber];
vpCurrentSequence.c2DataLength = ((tableOfContents[promptNumber + 1]
- tableOfContents[promptNumber])/8 * 8);
}
while (vpCurrentSequence.c2DataIndex < vpCurrentSequence.c2DataLength)