mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-24 21:12:27 +00:00
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:
parent
54076d1a07
commit
06b06abc74
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue