fixed volume

I applied another patch from Kirk Reiser which fixes the volume setting.
Thanks to Kirk for the patch.
This commit is contained in:
William Hubbs 2008-07-31 08:24:57 -05:00
commit eb5cb3d36d

View file

@ -71,7 +71,7 @@ static void set_voice(struct synth_t *s)
static void set_volume (struct synth_t *s)
{
espeak_SetParameter(espeakVOLUME, s->volume * volumeMultiplier, 0);
espeak_SetParameter(espeakVOLUME, (s->volume+1) * volumeMultiplier, 0);
}
static void stop_speech(void)
@ -188,8 +188,8 @@ static void main_loop (struct synth_t *s)
if (length < 0) {
printf("Read from softsynth failed!\n");
break;
}
*(buf+length) = 0;
}
*(buf+length) = 0;
process_data (s, buf, length);
}
}