3a56a6 alsa: Do not buffer more than 500ms.
Seems to work fine everywhere.
- The --no_default_filters option of para_filter has been
removed.
- Several fixes and latency improvements to various decoders.
+ - The alsa writer now limits the prebuffer time to 500ms.
- Documentation improvements.
------------------------------------------
NULL);
if (ret < 0 || buffer_time == 0)
goto fail;
+ /* buffer at most 500 milliseconds */
+ buffer_time = PARA_MIN(buffer_time, 500U * 1000U);
msg = "could not set buffer time";
ret = snd_pcm_hw_params_set_buffer_time_near(pad->handle, hwparams,
&buffer_time, NULL);