Browse Source

code cleanup: unused variables

master
Yury Popov 2 years ago
parent
commit
c09b887529
No account linked to committer's email address

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

#define PRIMARY_LAST 7 #define PRIMARY_LAST 7


static int number_pre; static int number_pre;
static int number_body;
static int number_tail; static int number_tail;
static int last_primary; static int last_primary;
static int tone_posn; static int tone_posn;
int max_stress_posn2 = 0; // penuntimate syllable of the highest stress int max_stress_posn2 = 0; // penuntimate syllable of the highest stress


number_pre = -1; // number of vowels before 1st primary stress number_pre = -1; // number of vowels before 1st primary stress
number_body = 0;
number_tail = 0; // number between tonic syllable and next primary number_tail = 0; // number between tonic syllable and next primary
last_primary = -1; last_primary = -1;



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

char phonemes_name[40] = ""; char phonemes_name[40] = "";
const char *language_type; const char *language_type;
char buf[sizeof(path_home)+30]; char buf[sizeof(path_home)+30];
#if USE_MBROLA
char name1[40]; char name1[40];
char name2[80]; char name2[80];
#endif


int pitch1; int pitch1;
int pitch2; int pitch2;

+ 0
- 1
src/speechPlayer/src/speechWaveGenerator.cpp View File



unsigned int generate(const unsigned int sampleCount, sample* sampleBuf) { unsigned int generate(const unsigned int sampleCount, sample* sampleBuf) {
if(!frameManager) return 0; if(!frameManager) return 0;
double val=0;
for(unsigned int i=0;i<sampleCount;++i) { for(unsigned int i=0;i<sampleCount;++i) {
const speechPlayer_frame_t* frame=frameManager->getCurrentFrame(); const speechPlayer_frame_t* frame=frameManager->getCurrentFrame();
if(frame) { if(frame) {

Loading…
Cancel
Save