mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-02 14:42:45 +00:00
code cleanup: remove dead code
This commit is contained in:
@@ -123,9 +123,6 @@ static int dispatch_audio(short *outbuf, int length, espeak_EVENT *event)
|
|||||||
// 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
|
||||||
|
|||||||
@@ -832,10 +832,6 @@ static int Wavegen(int length, int modulation, bool resume, frame_t *fr1, frame_
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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++) {
|
||||||
@@ -847,7 +843,6 @@ static int Wavegen(int length, int modulation, bool resume, frame_t *fr1, frame_
|
|||||||
theta += waveph;
|
theta += waveph;
|
||||||
h++;
|
h++;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (voicing != 64)
|
if (voicing != 64)
|
||||||
total = (total >> 6) * voicing;
|
total = (total >> 6) * voicing;
|
||||||
|
|||||||
Reference in New Issue
Block a user