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
1 changed files with 2 additions and 1 deletions

View File

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