Fixed file plugin - mmap access was broken and revents were not handled correctly

This commit is contained in:
Jaroslav Kysela 2004-02-08 10:19:52 +00:00
parent 37728639ae
commit 131d6610fc
5 changed files with 50 additions and 19 deletions

View file

@ -2257,6 +2257,8 @@ int snd_pcm_area_copy(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t
char *dst;
int width;
int src_step, dst_step;
if (dst_area == src_area && dst_offset == src_offset)
return 0;
if (!src_area->addr)
return snd_pcm_area_silence(dst_area, dst_offset, samples, format);
src = snd_pcm_channel_area_addr(src_area, src_offset);