From a73266962fca665dbff4a80d1e1189b484dd948f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 29 Jan 2009 17:08:51 +0100 Subject: jack: reduced sleep time to 1ms When waiting for free space in the ring buffer, the JACK plugin sleeped 10ms until there is enough space. This delay was too large for low-latency setups (<10ms), and created a lot of xruns. Work around that by reducing the sleep time to 1ms. A proper solution for this would be to use an event based approach, and we will do it, just not now. --- src/output/jack_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/output/jack_plugin.c b/src/output/jack_plugin.c index 2e5d5d70f..14ce635dc 100644 --- a/src/output/jack_plugin.c +++ b/src/output/jack_plugin.c @@ -421,7 +421,7 @@ mpd_jack_play(void *data, const char *buff, size_t size) } else { /* XXX do something more intelligent to synchronize */ - my_usleep(10000); + my_usleep(1000); } } -- cgit v1.2.3