Removed snd_pcm_mmap_begin_avail and changed snd_pcm_mmap_begin behaviour back.

This commit is contained in:
Jaroslav Kysela 2001-12-10 17:16:13 +00:00
parent bcf50519e4
commit 5c98225fc0
3 changed files with 34 additions and 65 deletions

View file

@ -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));