Fix rate setting without libsonic

This commit is contained in:
Yury Popov
2022-11-12 11:50:08 +03:00
parent 38384e4a67
commit 38e0f4b1f5
2 changed files with 7 additions and 8 deletions
+2 -3
View File
@@ -155,11 +155,10 @@ void SetSpeed(int control)
if (control == 2)
wpm = embedded_value[EMBED_S2];
#if HAVE_SONIC_H
int wpm_value;
speed.min_pause = 5;
wpm_value = wpm;
#if HAVE_SONIC_H
int wpm_value = wpm;
if (voice->speed_percent > 0)
wpm = (wpm * voice->speed_percent)/100;