removed the audio_callback variable

This commit is contained in:
William Hubbs 2009-06-23 11:02:09 -05:00
commit b108764b02
4 changed files with 1 additions and 6 deletions

2
alsa.c
View file

@ -163,6 +163,6 @@ int init_audio(unsigned int rate)
if (rc < 0)
return sound_error(rc, "unable to set hw parameters");
audio_callback = alsa_play_callback;
espeak_SetSynthCallback(alsa_play_callback);
return 0;
}

View file

@ -7,7 +7,6 @@ void select_audio_mode(void)
int init_audio(unsigned int rate)
{
audio_callback = NULL;
return 0;
}

View file

@ -44,7 +44,6 @@ int debug = 0;
volatile int stopped = 0;
espeak_AUDIO_OUTPUT audio_mode;
t_espeak_callback *audio_callback = NULL;
int espeakup_is_running(void)
{
@ -144,8 +143,6 @@ int main(int argc, char **argv)
return 6;
}
espeak_SetSynthCallback(audio_callback);
/* Setup initial voice parameters */
if (defaultVoice) {
set_voice(&s, defaultVoice);

View file

@ -85,5 +85,4 @@ extern void unlock_audio_mutex(void);
extern volatile int stopped;
extern espeak_AUDIO_OUTPUT audio_mode;
extern t_espeak_callback *audio_callback;
#endif