Removed snd_pcm_hwdiff() function

This commit is contained in:
Jaroslav Kysela 2003-02-22 17:53:01 +00:00
parent 2dab1dfbc3
commit 7b09000813
7 changed files with 4 additions and 51 deletions

View file

@ -1096,7 +1096,7 @@ static snd_pcm_sframes_t snd_pcm_dmix_forward(snd_pcm_t *pcm, snd_pcm_uframes_t
avail = snd_pcm_mmap_avail(pcm);
if (avail < 0)
return 0;
if (frames > avail)
if (frames > (snd_pcm_uframes_t)avail)
frames = avail;
snd_pcm_mmap_appl_forward(pcm, frames);
return frames;