removed the callback function

This commit removes the synthcallback function since it wasn't doing
anything.  Also, it has been reported that this may be causing the
sluggishness when espeakup is asked to shut up.
Thanks to Chris Brannon for finding this.
This commit is contained in:
William Hubbs 2008-10-04 11:39:01 -05:00
commit f76d00f6af
3 changed files with 0 additions and 8 deletions

View file

@ -114,7 +114,6 @@ int main(int argc, char **argv)
/* initialize espeak */
espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 0, NULL, 0);
espeak_SetSynthCallback(SynthCallback);
/* Setup initial voice parameters */
set_frequency(&s, defaultFrequency, ADJ_SET);

View file

@ -60,8 +60,6 @@ extern void queue_add_cmd(enum command_t cmd, enum adjust_t adj,
int value);
extern void queue_add_text(char *txt, size_t length);
extern void queue_process_entry(struct synth_t *s);
extern int SynthCallback(short *wav, int numsamples,
espeak_EVENT * events);
extern espeak_ERROR set_frequency(struct synth_t *s, int freq,
enum adjust_t adj);
extern espeak_ERROR set_pitch(struct synth_t *s, int pitch,

View file

@ -28,11 +28,6 @@ const int rateMultiplier = 34;
const int rateOffset = 84;
const int volumeMultiplier = 22;
int SynthCallback(short *wav, int numsamples, espeak_EVENT * events)
{
return 0;
}
espeak_ERROR set_frequency(struct synth_t * s, int freq, enum adjust_t adj)
{
espeak_ERROR rc;