summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-14 12:51:36 -0800
committerChris Robinson <[email protected]>2008-01-14 12:51:36 -0800
commit1634b69faf895e2666f81af344aad76609cfbc60 (patch)
tree34f5e574a0c5b06216853ec623c4595fb0a23cb2 /Alc
parent59fa1f90d5968b9bcf9ae2b72af15b206a92c3ca (diff)
Don't restart the stream right after preparing it
It needs to be filled, first
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alsa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 8bc6d903..19bda047 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -108,8 +108,6 @@ static int xrun_recovery(snd_pcm_t *handle, int err)
if (err == -EPIPE)
{ /* under-run */
err = psnd_pcm_prepare(handle);
- if(err >= 0)
- err = psnd_pcm_start(handle);
if (err < 0)
AL_PRINT("prepare failed: %s\n", psnd_strerror(err));
}
@@ -120,8 +118,6 @@ static int xrun_recovery(snd_pcm_t *handle, int err)
if (err < 0)
{
err = psnd_pcm_prepare(handle);
- if(err >= 0)
- err = psnd_pcm_start(handle);
if (err < 0)
AL_PRINT("prepare failed: %s\n", psnd_strerror(err));
}