mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
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:
parent
7604cac68c
commit
eb5cb3d36d
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue