aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/JackOutputPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx
index e1dad7893..5651de68a 100644
--- a/src/output/plugins/JackOutputPlugin.cxx
+++ b/src/output/plugins/JackOutputPlugin.cxx
@@ -32,6 +32,7 @@
#include <jack/types.h>
#include <jack/ringbuffer.h>
+#include <unistd.h> /* for usleep() */
#include <stdlib.h>
#include <string.h>
@@ -719,7 +720,7 @@ mpd_jack_play(AudioOutput *ao, const void *chunk, size_t size,
/* XXX do something more intelligent to
synchronize */
- g_usleep(1000);
+ usleep(1000);
}
space /= jack_sample_size;