Browse Source

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
master
Juho Hiltunen 5 years ago
parent
commit
5d03047c19
3 changed files with 0 additions and 4 deletions
  1. 0
    1
      src/libespeak-ng/synthdata.c
  2. 0
    2
      src/libespeak-ng/synthesize.c
  3. 0
    1
      src/libespeak-ng/synthesize.h

+ 0
- 1
src/libespeak-ng/synthdata.c View File

@@ -60,7 +60,6 @@ int wavefile_ix; // a wavefile to play along with the synthesis
int wavefile_amp;

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)
{

+ 0
- 2
src/libespeak-ng/synthesize.c View File

@@ -126,7 +126,6 @@ static void EndPitch(int voice_break)
syllable_end = wcmdq_tail;
SmoothSpect();
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_centre = -1;
last_pitch_cmd = -1;
memset(vowel_transition, 0, sizeof(vowel_transition));
memset(&worddata, 0, sizeof(worddata));
DoPause(0, 0); // isolate from the previous clause
}

+ 0
- 1
src/libespeak-ng/synthesize.h View File

@@ -450,7 +450,6 @@ extern int samplerate_native;

extern int wavefile_ix;
extern int wavefile_amp;
extern int vowel_transition[4];

#define N_ECHO_BUF 5500 // max of 250mS at 22050 Hz
extern int echo_head;

Loading…
Cancel
Save