mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-22 15:44:17 +02:00
audio should be stopped in softsynth_thread not espeak_thread
This commit is contained in:
parent
c9f871f687
commit
ceaae3640a
2 changed files with 1 additions and 1 deletions
|
|
@ -170,6 +170,7 @@ static void process_buffer(struct synth_t *s, char *buf, ssize_t length)
|
|||
static void request_espeak_stop(void)
|
||||
{
|
||||
pthread_mutex_lock(&queue_guard);
|
||||
stop_audio();
|
||||
runner_must_stop = 1;
|
||||
pthread_cond_signal(&runner_awake); /* Wake runner, if necessary. */
|
||||
while(should_run && (runner_must_stop == 1))
|
||||
|
|
|
|||
1
synth.c
1
synth.c
|
|
@ -129,7 +129,6 @@ static espeak_ERROR stop_speech(void)
|
|||
{
|
||||
espeak_ERROR rc;
|
||||
|
||||
stop_audio();
|
||||
rc = espeak_Cancel();
|
||||
start_audio(&user_data);
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue