From e5d365a3d9642723c2e68660321a6f3e147a7117 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 1 Mar 2012 20:47:49 -0800 Subject: Avoid an unnecessary doCapture check --- Alc/backends/alsa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/backends') diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index 4892c8d4..a9f34491 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -1051,8 +1051,7 @@ static ALCenum alsa_capture_samples(ALCdevice *Device, ALCvoid *Buffer, ALCuint continue; if((amt=snd_pcm_recover(data->pcmHandle, amt, 1)) >= 0) { - if(data->doCapture) - amt = snd_pcm_start(data->pcmHandle); + amt = snd_pcm_start(data->pcmHandle); if(amt >= 0) amt = snd_pcm_avail_update(data->pcmHandle); } -- cgit v1.2.3