Avoid busy waiting when waiting for suspend to clear

This commit is contained in:
Chris Robinson 2008-01-14 13:23:49 -08:00
parent 2b8ce3b4cf
commit d9ef062caf

View File

@ -248,9 +248,8 @@ static ALuint ALSANoMMapProc(ALvoid *ptr)
case -EAGAIN:
continue;
case -ESTRPIPE:
do {
ret = psnd_pcm_resume(data->pcmHandle);
} while(ret == -EAGAIN);
while((ret=psnd_pcm_resume(data->pcmHandle)) == -EAGAIN)
Sleep(1);
break;
case -EPIPE:
break;