Browse Source

cleanup: fix duplicateCondition code smell

master
Juho Hiltunen 2 years ago
parent
commit
7c7ab9e177
2 changed files with 2 additions and 4 deletions
  1. 0
    2
      src/libespeak-ng/klatt.c
  2. 2
    2
      src/libespeak-ng/soundicon.c

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

if ((cmd == WCMD_WAVE) || (cmd == WCMD_PAUSE)) if ((cmd == WCMD_WAVE) || (cmd == WCMD_PAUSE))
break; // next is not from spectrum, so continue until end of wave cycle break; // next is not from spectrum, so continue until end of wave cycle
} }
}


if (control & 1) {
for (ix = 1; ix < 6; ix++) { for (ix = 1; ix < 6; ix++) {
if (prev_fr.ffreq[ix] != fr1->ffreq[ix]) { if (prev_fr.ffreq[ix] != fr1->ffreq[ix]) {
// Discontinuity in formants. // Discontinuity in formants.

+ 2
- 2
src/libespeak-ng/soundicon.c View File

strcpy(fname_temp, tmpnam(NULL)); strcpy(fname_temp, tmpnam(NULL));
#endif #endif


sprintf(command, "sox \"%s\" -r %d -c1 -b 16 -t wav %s\n", fname, samplerate, fname_temp);
if (system(command) == 0)
// sprintf(command, "sox \"%s\" -r %d -c1 -b 16 -t wav %s\n", fname, samplerate, fname_temp);
// if (system(command) == 0)
fname = fname_temp; fname = fname_temp;
} }
} }

Loading…
Cancel
Save