mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-27 13:23:49 +00:00
code cleanup: remove unused int vowel_transition[4]
There's two variables with the same name: 1) in struct PHONEME_DATA, used by *phdata, *phdata_next and *phdata_prev 2) an unnecessary one that's only being memset() twice but never used for anything
This commit is contained in:
@@ -60,7 +60,6 @@ int wavefile_ix; // a wavefile to play along with the synthesis
|
|||||||
int wavefile_amp;
|
int wavefile_amp;
|
||||||
|
|
||||||
int seq_len_adjust;
|
int seq_len_adjust;
|
||||||
int vowel_transition[4];
|
|
||||||
|
|
||||||
static espeak_ng_STATUS ReadPhFile(void **ptr, const char *fname, int *size, espeak_ng_ERROR_CONTEXT *context)
|
static espeak_ng_STATUS ReadPhFile(void **ptr, const char *fname, int *size, espeak_ng_ERROR_CONTEXT *context)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ static void EndPitch(int voice_break)
|
|||||||
syllable_end = wcmdq_tail;
|
syllable_end = wcmdq_tail;
|
||||||
SmoothSpect();
|
SmoothSpect();
|
||||||
syllable_centre = -1;
|
syllable_centre = -1;
|
||||||
memset(vowel_transition, 0, sizeof(vowel_transition));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1189,7 +1188,6 @@ int Generate(PHONEME_LIST *phoneme_list, int *n_ph, bool resume)
|
|||||||
syllable_end = wcmdq_tail;
|
syllable_end = wcmdq_tail;
|
||||||
syllable_centre = -1;
|
syllable_centre = -1;
|
||||||
last_pitch_cmd = -1;
|
last_pitch_cmd = -1;
|
||||||
memset(vowel_transition, 0, sizeof(vowel_transition));
|
|
||||||
memset(&worddata, 0, sizeof(worddata));
|
memset(&worddata, 0, sizeof(worddata));
|
||||||
DoPause(0, 0); // isolate from the previous clause
|
DoPause(0, 0); // isolate from the previous clause
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -450,7 +450,6 @@ extern int samplerate_native;
|
|||||||
|
|
||||||
extern int wavefile_ix;
|
extern int wavefile_ix;
|
||||||
extern int wavefile_amp;
|
extern int wavefile_amp;
|
||||||
extern int vowel_transition[4];
|
|
||||||
|
|
||||||
#define N_ECHO_BUF 5500 // max of 250mS at 22050 Hz
|
#define N_ECHO_BUF 5500 // max of 250mS at 22050 Hz
|
||||||
extern int echo_head;
|
extern int echo_head;
|
||||||
|
|||||||
Reference in New Issue
Block a user