mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
removed the audio_callback variable
This commit is contained in:
parent
739d79cff8
commit
b108764b02
4 changed files with 1 additions and 6 deletions
2
alsa.c
2
alsa.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ void select_audio_mode(void)
|
|||
|
||||
int init_audio(unsigned int rate)
|
||||
{
|
||||
audio_callback = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue