From 218ace2b02e2f2a867c4b792d4a1ec03015d7294 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Aug 2014 22:09:48 +0200 Subject: audio: limit on low (and not high) buffer size The original intention was probably to avoid unnecessarily high numbers of wakeups. Change it to wait at most 25% of buffer time instead of 75% until refilling. Might help with the dsound problems in issue #1024, but I don't know if success is guaranteed. --- audio/out/push.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/out/push.c b/audio/out/push.c index c825310e01..f35c597100 100644 --- a/audio/out/push.c +++ b/audio/out/push.c @@ -281,7 +281,7 @@ static double ao_estimate_timeout(struct ao *ao) if (timeout > 0.100) timeout = MPMAX(timeout - 0.200, 0.100); } - return MPMAX(timeout, ao->device_buffer * 0.75 / ao->samplerate); + return MPMAX(timeout, ao->device_buffer * 0.25 / ao->samplerate); } static void *playthread(void *arg) -- cgit v1.2.3