mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:25:43 +01:00
Removed xrun_max. Cleaned xrun handling
This commit is contained in:
parent
907eba4cf9
commit
da8c3eddb0
1 changed files with 0 additions and 1 deletions
|
@ -794,7 +794,6 @@ static void set_params(void)
|
||||||
if (xrun_mode == SND_PCM_XRUN_FRAGMENT)
|
if (xrun_mode == SND_PCM_XRUN_FRAGMENT)
|
||||||
params.xfer_align = params.frag_size;
|
params.xfer_align = params.frag_size;
|
||||||
params.xfer_min = format.rate * xfer_min / 1000;
|
params.xfer_min = format.rate * xfer_min / 1000;
|
||||||
params.xrun_max = 0;
|
|
||||||
if (snd_pcm_params(handle, ¶ms) < 0) {
|
if (snd_pcm_params(handle, ¶ms) < 0) {
|
||||||
error("unable to set params (where=0x%x, why=0x%x)", params.fail_mask, params.fail_reason);
|
error("unable to set params (where=0x%x, why=0x%x)", params.fail_mask, params.fail_reason);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
Loading…
Reference in a new issue