0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

ao_alsa: reduce default buffer size

In general, we don't need to have a large hw audio buffer size anymore,
because we can quickly fill it from the soft buffer.

Note that this probably doesn't change much anyway. On my system (dmix
enabled), the buffer size is only 170ms, and ALSA won't give more. Even
when using a hardware device the buffer size seems to be limited to
341ms.
This commit is contained in:
wm4 2014-03-10 01:28:27 +01:00
parent 2e10f536db
commit b3f9d3750b

View File

@ -67,7 +67,7 @@ struct priv {
int cfg_resample;
};
#define BUFFER_TIME 500000 // 0.5 s
#define BUFFER_TIME 250000 // 250ms
#define FRAGCOUNT 16
#define CHECK_ALSA_ERROR(message) \