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.
md1702
vk7js 2022-09-09 16:41:55 +10:00 zatwierdzone przez Silvano Seva
rodzic 80f6fe2289
commit 3c20a5282e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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)