Browse Source

code cleanup: more consts, less statics

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

+ 1
- 1
src/libespeak-ng/intonation.c View File

0x50, 0x5a, 0x64, 0x70, 0x7c, 0x83, 0x85, 0x88, 0x8a, 0x8c, 0x8e, 0x8f, 0x91, 0x92, 0x93, 0x93 0x50, 0x5a, 0x64, 0x70, 0x7c, 0x83, 0x85, 0x88, 0x8a, 0x8c, 0x8e, 0x8f, 0x91, 0x92, 0x93, 0x93
}; };


const unsigned char *envelope_data[N_ENVELOPE_DATA] = {
const unsigned char *const envelope_data[N_ENVELOPE_DATA] = {
env_fall, env_fall, env_fall, env_fall,
env_rise, env_rise, env_rise, env_rise,
env_frise, env_r_frise, env_frise, env_r_frise,

+ 1
- 1
src/libespeak-ng/synth_mbrola.c View File

MBROLA_TAB *pr; MBROLA_TAB *pr;
PHONEME_TAB *other_ph; PHONEME_TAB *other_ph;
bool found = false; bool found = false;
static int mnem;
int mnem;


// control // control
// bit 0 skip the next phoneme // bit 0 skip the next phoneme

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

#define PITCHfall 0 // standard pitch envelopes #define PITCHfall 0 // standard pitch envelopes
#define PITCHrise 2 #define PITCHrise 2
#define N_ENVELOPE_DATA 20 #define N_ENVELOPE_DATA 20
extern const unsigned char *envelope_data[N_ENVELOPE_DATA];
extern const unsigned char *const envelope_data[N_ENVELOPE_DATA];


extern int formant_rate[]; // max rate of change of each formant extern int formant_rate[]; // max rate of change of each formant
extern SPEED_FACTORS speed; extern SPEED_FACTORS speed;

Loading…
Cancel
Save