Avoid busy waiting when waiting for suspend to clear
This commit is contained in:
parent
2b8ce3b4cf
commit
d9ef062caf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user