mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-21 15:24:17 +02:00
call snd_pcm_prepare after snd_pcm_drop in stop_audio
This commit is contained in:
parent
101e14901e
commit
82490a98d2
1 changed files with 1 additions and 0 deletions
1
alsa.c
1
alsa.c
|
|
@ -178,6 +178,7 @@ void stop_audio(void)
|
|||
stop_requested = 1;
|
||||
if(snd_pcm_drop(handle) < 0)
|
||||
fprintf(stderr, "Negative return from snd_pcm_drop!\n");
|
||||
snd_pcm_prepare(handle);
|
||||
unlock_audio_mutex();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue