[1.37.10]

SAPI5: Fix pitch changes for mbrola voices.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@182 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2008-08-07 10:16:47 +00:00
parent 04cdb409db
commit 8c40f961d7
9 changed files with 146 additions and 65 deletions
+16 -1
View File
@@ -396,11 +396,26 @@ static void MbrolaEmbedded(int &embix, int sourceix)
unsigned int word; // bit 7=last command for this word, bits 5,6 sign, bits 0-4 command
unsigned int value;
int command;
int sign=0;
do {
word = embedded_list[embix++];
value = word >> 8;
command = word & 0x7f;
command = word & 0x1f;
if((word & 0x60) == 0x60)
sign = -1;
else
if((word & 0x60) == 0x40)
sign = 1;
if(command < N_EMBEDDED_VALUES)
{
if(sign == 0)
embedded_value[command] = value;
else
embedded_value[command] += (value * sign);
}
switch(command & 0x1f)
{