mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-05 16:03:09 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user