mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
code cleanup: dead global in spect
This commit is contained in:
committed by
Alexander Epaneshnikov
parent
7485828984
commit
d2f3be9f36
@@ -36,8 +36,6 @@
|
||||
#include "synthesize.h" // for KLATT_AV, KLATT_Kopen, N_KLATTP2
|
||||
#include "voice.h" // for N_PEAKS
|
||||
|
||||
static int frame_width;
|
||||
|
||||
static const int default_freq[N_PEAKS] =
|
||||
{ 200, 500, 1200, 3000, 3500, 4000, 6900, 7800, 9000 };
|
||||
static const int default_width[N_PEAKS] =
|
||||
@@ -377,9 +375,6 @@ espeak_ng_STATUS LoadSpectSeq(SpectSeq *spect, const char *filename)
|
||||
}
|
||||
spect->max_x = 9000; // disable auto-xscaling
|
||||
|
||||
frame_width = (int)((FRAME_WIDTH*spect->max_x)/MAX_DISPLAY_FREQ);
|
||||
if (frame_width > FRAME_WIDTH) frame_width = FRAME_WIDTH;
|
||||
|
||||
// start times from zero
|
||||
time_offset = spect->frames[0]->time;
|
||||
for (ix = 0; ix < spect->numframes; ix++)
|
||||
|
||||
Reference in New Issue
Block a user