code cleanup: static current_voice_selected

This commit is contained in:
Yury Popov
2022-11-19 17:29:16 +03:00
parent 2ddb8ce2db
commit 504ab4937d
4 changed files with 5 additions and 6 deletions
+2 -1
View File
@@ -381,7 +381,8 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Initialize(espeak_ng_ERROR_CONTEXT *con
WavegenInit(srate, 0);
LoadConfig();
memset(&current_voice_selected, 0, sizeof(current_voice_selected));
espeak_VOICE *current_voice_selected = espeak_GetCurrentVoice();
memset(current_voice_selected, 0, sizeof(espeak_VOICE));
SetVoiceStack(NULL, "");
SynthesizeInit();
InitNamedata();