mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +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
bffe67977c
commit
475a0b0d4a
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,8 @@ 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