output/jack: use usleep() instead of g_usleep()
This commit is contained in:
parent
02a77f6797
commit
c1c0fc79bc
@ -32,6 +32,7 @@
|
|||||||
#include <jack/types.h>
|
#include <jack/types.h>
|
||||||
#include <jack/ringbuffer.h>
|
#include <jack/ringbuffer.h>
|
||||||
|
|
||||||
|
#include <unistd.h> /* for usleep() */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.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
|
/* XXX do something more intelligent to
|
||||||
synchronize */
|
synchronize */
|
||||||
g_usleep(1000);
|
usleep(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
space /= jack_sample_size;
|
space /= jack_sample_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user