Browse Source

code cleanup: remove dead code

master
Yury Popov 2 years ago
parent
commit
92beee2b4c
No account linked to committer's email address
2 changed files with 0 additions and 8 deletions
  1. 0
    3
      src/libespeak-ng/speech.c
  2. 0
    5
      src/libespeak-ng/wavegen.c

+ 0
- 3
src/libespeak-ng/speech.c View File

// sound was previously open with a different sample rate // sound was previously open with a different sample rate
audio_object_close(my_audio); audio_object_close(my_audio);
out_samplerate = 0; out_samplerate = 0;
#ifdef HAVE_SLEEP
sleep(1);
#endif
} }
#endif #endif
#if USE_LIBPCAUDIO #if USE_LIBPCAUDIO

+ 0
- 5
src/libespeak-ng/wavegen.c View File

} }


// apply main peaks, formants 0 to 5 // apply main peaks, formants 0 to 5
#ifdef USE_ASSEMBLER_1
// use an optimised routine for this loop, if available
total += AddSineWaves(waveph, h_switch_sign, maxh, harmspect); // call an assembler code routine
#else
theta = waveph; theta = waveph;


for (h = 1; h <= h_switch_sign; h++) { for (h = 1; h <= h_switch_sign; h++) {
theta += waveph; theta += waveph;
h++; h++;
} }
#endif


if (voicing != 64) if (voicing != 64)
total = (total >> 6) * voicing; total = (total >> 6) * voicing;

Loading…
Cancel
Save