mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Removed snd_pcm_mmap_begin_avail and changed snd_pcm_mmap_begin behaviour back.
This commit is contained in:
parent
bcf50519e4
commit
5c98225fc0
3 changed files with 34 additions and 65 deletions
|
|
@ -465,7 +465,7 @@ static int direct_loop(snd_pcm_t *handle,
|
|||
size = period_size;
|
||||
while (size > 0) {
|
||||
frames = size;
|
||||
err = snd_pcm_mmap_begin_avail(handle, &my_areas, &offset, &frames, avail);
|
||||
err = snd_pcm_mmap_begin(handle, &my_areas, &offset, &frames);
|
||||
if (err < 0) {
|
||||
if ((err = xrun_recovery(handle, err)) < 0) {
|
||||
printf("MMAP begin avail error: %s\n", snd_strerror(err));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue