From eb5cb3d36d35887907e13aeee0cad8fcc1b73baa Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 31 Jul 2008 08:24:57 -0500 Subject: [PATCH] fixed volume I applied another patch from Kirk Reiser which fixes the volume setting. Thanks to Kirk for the patch. --- espeakup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/espeakup.c b/espeakup.c index bffb53c..5532961 100644 --- a/espeakup.c +++ b/espeakup.c @@ -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); } }