simpleaudio-alsa: allow max latency

Request "maximum possible allowed latency", to help avoid underruns.
This commit is contained in:
Kamal Mostafa 2012-10-01 19:06:27 -07:00
parent 151ee0e004
commit 2af26a4d06
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ sa_alsa_open_stream(
channels, channels,
rate, rate,
1 /* soft_resample (allow) */, 1 /* soft_resample (allow) */,
200*1000 /* latency (200 ms) */); (unsigned int)-1 /* latency (allow max to avoid underruns) */);
if (error) { if (error) {
fprintf(stderr, "E: %s\n", snd_strerror(error)); fprintf(stderr, "E: %s\n", snd_strerror(error));
snd_pcm_close(pcm); snd_pcm_close(pcm);