code cleanup: remove wavefile_ix, move wavefile_amp

wavefile_ix is always equal to fmt_params->wav_addr.

wavefile_amp is only used once  so it can be set right
before calling DoSample2().
This commit is contained in:
Juho Hiltunen
2021-03-20 20:29:33 +02:00
parent c315a10109
commit 8ce104a315
3 changed files with 8 additions and 16 deletions
-4
View File
@@ -55,9 +55,6 @@ int n_phoneme_tables;
PHONEME_TAB_LIST phoneme_tab_list[N_PHONEME_TABS];
int phoneme_tab_number = 0;
int wavefile_ix; // a wavefile to play along with the synthesis
int wavefile_amp;
int seq_len_adjust;
static espeak_ng_STATUS ReadPhFile(void **ptr, const char *fname, int *size, espeak_ng_ERROR_CONTEXT *context)
@@ -271,7 +268,6 @@ frameref_t *LookupSpect(PHONEME_TAB *this_ph, int which, FMT_PARAMS *fmt_params,
}
nf++;
}
wavefile_ix = 0;
}
if (length1 > 0) {