mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-01 06:27:54 +00:00
code cleanup: pass voice_t wvoice as a parameter instead of using a global
SetSynth_Klatt() was using wvoice in two ways: 1) global wvoice was used directly 2) global wvoice was also passed in Wavegen_Klatt() as an argument "v" Now the code only uses the function argument wvoice Contributes to #68.
This commit is contained in:
@@ -1346,7 +1346,7 @@ static int WavegenFill2()
|
||||
wdata.n_mix_wavefile = 0; // ... and drop through to WCMD_SPECT case
|
||||
case WCMD_KLATT:
|
||||
echo_complete = echo_length;
|
||||
result = Wavegen_Klatt(length & 0xffff, resume, (frame_t *)q[2], (frame_t *)q[3], &wdata);
|
||||
result = Wavegen_Klatt(length & 0xffff, resume, (frame_t *)q[2], (frame_t *)q[3], &wdata, wvoice);
|
||||
break;
|
||||
#endif
|
||||
case WCMD_MARKER:
|
||||
|
||||
Reference in New Issue
Block a user