Fix a numerical overflow in wavegen() which could cause distortion when a voice file increases the height of formant peaks.

git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@92 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-10-18 12:09:06 +00:00
parent dbe268fc06
commit e5f2d6f4c6
5 changed files with 14 additions and 23 deletions
+1 -1
View File
@@ -1494,7 +1494,7 @@ int Translator::TranslateWord2(char *word, WORD_TAB *wtab, int pre_pause, int ne
if(flags & FLAG_STRESS_END2)
{
// this's word's stress could be increased later
ph_list2[max_stress_ix].stress |= 0x80;
ph_list2[max_stress_ix].synthflags |= SFLAG_PROMOTE_STRESS;
}
prev_dict_flags = flags;