input/alsa: set period_size=buffer_size/4

This way, we have four periods instead of the default of two.  With
only two periods, we don't get woken up often enough, and we
frequently encounter buffer overruns.  With four periods, we have more
time to breathe, and the buffer overruns magically disappear.
This commit is contained in:
Max Kellermann
2017-01-14 21:46:17 +01:00
parent d1f3a87c08
commit 7e8b448985
2 changed files with 17 additions and 21 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
ver 0.20.2 (not yet released)
* input
- alsa: fix crash bug
- alsa: fix buffer overruns
* decoder
- flac: add options "probesize" and "analyzeduration"
* resampler