|
@@ -111,7 +111,7 @@ static int xrun_recovery(snd_pcm_t *handle, int err) { |
|
|
if (err < 0) |
|
|
if (err < 0) |
|
|
printf("Can't recovery from underrun, prepare failed: %s\n", snd_strerror(err)); |
|
|
printf("Can't recovery from underrun, prepare failed: %s\n", snd_strerror(err)); |
|
|
return 0; |
|
|
return 0; |
|
|
} else if (err == -EAGAIN) { |
|
|
|
|
|
|
|
|
} else if (err == -ESTRPIPE) { |
|
|
while ((err = snd_pcm_resume(handle)) == -EAGAIN) |
|
|
while ((err = snd_pcm_resume(handle)) == -EAGAIN) |
|
|
usleep(100); /* wait until the suspend flag is released */ |
|
|
usleep(100); /* wait until the suspend flag is released */ |
|
|
if (err < 0) { |
|
|
if (err < 0) { |
|
|