From e0d7876eca0a8ac08a52512ab1a1d3861eca8437 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Jan 2014 23:52:18 +0100 Subject: ao_pulse: lower default buffer size from 1000ms to 250ms 1000ms is a bit insane. It makes behavior on playback speed changes worse (because the player has to catch up the dropped audio due to audio-chain reset), and perhaps makes seeking slower. Note that the problem of playback speed changes misbehaving will be fixed in the future, but even then we don't want to have a buffer that large. --- DOCS/man/en/ao.rst | 2 +- audio/out/ao_pulse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/man/en/ao.rst b/DOCS/man/en/ao.rst index ef28c0771c..14f7a5726e 100644 --- a/DOCS/man/en/ao.rst +++ b/DOCS/man/en/ao.rst @@ -130,7 +130,7 @@ Available audio output drivers are: Set the audio buffer size in milliseconds. A higher value buffers more data, and has a lower probability of buffer underruns. A smaller value makes the audio stream react faster, e.g. to playback speed - changes. Default: 1000. + changes. Default: 250. ``portaudio`` PortAudio audio output driver. This works on all platforms, and has diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c index a573738deb..fc93c40871 100644 --- a/audio/out/ao_pulse.c +++ b/audio/out/ao_pulse.c @@ -621,7 +621,7 @@ const struct ao_driver audio_out_pulse = { .resume = resume, .priv_size = sizeof(struct priv), .priv_defaults = &(const struct priv) { - .cfg_buffer = 1000, + .cfg_buffer = 250, }, .options = (const struct m_option[]) { OPT_STRING("host", cfg_host, 0), -- cgit v1.2.3