aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alsa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index e5881e55..f661d76b 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -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;