diff options
author | Chris Robinson <[email protected]> | 2012-03-01 20:47:49 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-01 20:47:49 -0800 |
commit | e5d365a3d9642723c2e68660321a6f3e147a7117 (patch) | |
tree | 913bc16183b6cf33061f83834b5fc937e5dc10ca /Alc/backends | |
parent | 6ffaabeb75277f33b2c60bf05fbdf6094c2b5d94 (diff) |
Avoid an unnecessary doCapture check
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/alsa.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |