Only update the sample rate if the mbrola voice was successfully loaded.

This commit is contained in:
Reece H. Dunn
2017-05-28 10:41:16 +01:00
parent e41a78d819
commit 7accbcd498
+2 -1
View File
@@ -832,7 +832,8 @@ voice_t *LoadVoice(const char *vname, int control)
espeak_ng_STATUS status = LoadMbrolaTable(name1, name2, &srate);
if (status != ENS_OK)
espeak_ng_PrintStatusCodeMessage(status, stderr, NULL);
voice->samplerate = srate;
else
voice->samplerate = srate;
}
break;
case V_KLATT: