Small fix in sound flushing code.

This commit is contained in:
Oleg Prokhorov 2003-10-14 05:18:40 +00:00 committed by Alexandre Julliard
parent e55d5937ac
commit 2f878e518b
1 changed files with 3 additions and 0 deletions
dlls/winmm/winealsa

View File

@ -845,6 +845,9 @@ void wait_for_poll(snd_pcm_t *handle, struct pollfd *ufds, unsigned int count)
{
unsigned short revents;
if (snd_pcm_state(handle) != SND_PCM_STATE_RUNNING)
return;
while (1) {
poll(ufds, count, -1);
snd_pcm_poll_descriptors_revents(handle, ufds, count, &revents);