mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fixed file plugin - mmap access was broken and revents were not handled correctly
This commit is contained in:
parent
37728639ae
commit
131d6610fc
5 changed files with 50 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue