must not call snd_pcm_mmap_forward with a count of 0

this fixes the alsa assert at slower rates
This commit is contained in:
Bill Currie 2001-04-13 08:07:56 +00:00
parent 54076d1a07
commit 06b06abc74

View file

@ -298,6 +298,7 @@ void SNDDMA_Submit(void)
avail = buffer_size; avail = buffer_size;
if (count > avail) if (count > avail)
count = avail; count = avail;
if (count)
snd_pcm_mmap_forward (pcm, count); snd_pcm_mmap_forward (pcm, count);
} }
break; break;