aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 4d1d58b3..bbe55a52 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -500,11 +500,6 @@ static ALCboolean alsa_open_playback(ALCdevice *device, const ALCchar *deviceNam
data = (alsa_data*)calloc(1, sizeof(alsa_data));
i = psnd_pcm_open(&data->pcmHandle, driver, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
- if(i < 0)
- {
- Sleep(200);
- i = psnd_pcm_open(&data->pcmHandle, driver, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
- }
if(i >= 0)
{
i = psnd_pcm_nonblock(data->pcmHandle, 0);
@@ -800,11 +795,6 @@ static ALCboolean alsa_open_capture(ALCdevice *pDevice, const ALCchar *deviceNam
i = psnd_pcm_open(&data->pcmHandle, driver, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
if(i < 0)
{
- Sleep(200);
- i = psnd_pcm_open(&data->pcmHandle, driver, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
- }
- if(i < 0)
- {
AL_PRINT("Could not open capture device '%s': %s\n", driver, psnd_strerror(i));
free(data);
return ALC_FALSE;