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

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

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

syllable_end = wcmdq_tail; syllable_end = wcmdq_tail;
SmoothSpect(); SmoothSpect();
syllable_centre = -1; syllable_centre = -1;
memset(vowel_transition, 0, sizeof(vowel_transition));
} }
} }


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
} }

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



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;

Loading…
Cancel
Save