aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-10-16 10:57:58 -0700
committerChris Robinson <[email protected]>2009-10-16 10:57:58 -0700
commit86e0b9386dd4a8fa788a4255e54f3b65f91ab61a (patch)
tree0bc4b4e74ff42ec7c94732b3bbc4a65bed62608f
parentc7c4cf221a9933d385646ed12fd4b1d611632502 (diff)
Remove duplicate check in ALSA mmap playback
-rw-r--r--Alc/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 24d96ba1..f8ad0b78 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -289,7 +289,7 @@ static ALuint ALSAProc(ALvoid *ptr)
}
// make sure there's frames to process
- if(avail >= 0 && avail < (snd_pcm_sframes_t)pDevice->UpdateSize)
+ if((snd_pcm_uframes_t)avail < pDevice->UpdateSize)
{
if(state != SND_PCM_STATE_RUNNING)
{