simpleaudio-alsa: allow max latency
Request "maximum possible allowed latency", to help avoid underruns.
This commit is contained in:
parent
151ee0e004
commit
2af26a4d06
|
@ -155,7 +155,7 @@ sa_alsa_open_stream(
|
|||
channels,
|
||||
rate,
|
||||
1 /* soft_resample (allow) */,
|
||||
200*1000 /* latency (200 ms) */);
|
||||
(unsigned int)-1 /* latency (allow max to avoid underruns) */);
|
||||
if (error) {
|
||||
fprintf(stderr, "E: %s\n", snd_strerror(error));
|
||||
snd_pcm_close(pcm);
|
||||
|
|
Loading…
Reference in New Issue