summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-06-05 19:56:58 -0700
committerChris Robinson <[email protected]>2010-06-05 19:56:58 -0700
commited585710790c35a2624586d9f387c261cf1bff48 (patch)
treeb04f4fd64ab3205e3066d19ff3b7e92725191c43 /Alc
parent80fbe8a788b7007deb2e42178c857e504207aa50 (diff)
Use non-blocking mode for ALSA capture
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alsa.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 2ec0e609..67ee1f05 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -806,12 +806,6 @@ static ALCboolean alsa_open_capture(ALCdevice *pDevice, const ALCchar *deviceNam
Sleep(200);
i = psnd_pcm_open(&data->pcmHandle, driver, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
}
- if(i >= 0)
- {
- i = psnd_pcm_nonblock(data->pcmHandle, 0);
- if(i < 0)
- psnd_pcm_close(data->pcmHandle);
- }
if(i < 0)
{
AL_PRINT("Could not open capture device '%s': %s\n", driver, psnd_strerror(i));