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
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/libespeak-ng/intonation.c
  2. 1
    1
      src/libespeak-ng/synth_mbrola.c
  3. 1
    1
      src/libespeak-ng/synthesize.h

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

@@ -194,7 +194,7 @@ static const unsigned char env_risefallrise[128] = {
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_rise, env_rise,
env_frise, env_r_frise,

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

@@ -164,7 +164,7 @@ static int GetMbrName(PHONEME_LIST *plist, PHONEME_TAB *ph, PHONEME_TAB *ph_prev
MBROLA_TAB *pr;
PHONEME_TAB *other_ph;
bool found = false;
static int mnem;
int mnem;

// control
// bit 0 skip the next phoneme

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

@@ -447,7 +447,7 @@ void DoSonicSpeed(int value);
#define PITCHfall 0 // standard pitch envelopes
#define PITCHrise 2
#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 SPEED_FACTORS speed;

Loading…
Cancel
Save