mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 06:32:20 +00:00
LoadMbrolaTable reads mbrola_tab in 4-byte chunks, so the fread operation always returns 0 bytes.
This commit is contained in:
@@ -174,11 +174,6 @@ espeak_ng_STATUS LoadMbrolaTable(const char *mbrola_voice, const char *phtrans,
|
||||
pw = (int *)mbrola_tab;
|
||||
for (ix = 4; ix < size; ix += 4)
|
||||
*pw++ = Read4Bytes(f_in);
|
||||
if (fread(mbrola_tab, 1, size, f_in) != size) {
|
||||
int error = errno;
|
||||
fclose(f_in);
|
||||
return error;
|
||||
}
|
||||
fclose(f_in);
|
||||
|
||||
setVolumeRatio_MBR((float)(mbrola_control & 0xff) /16.0f);
|
||||
|
||||
Reference in New Issue
Block a user