Avoid busy waiting when waiting for suspend to clear
This commit is contained in:
+2
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user