diff options
author | Max Kellermann <max@duempel.org> | 2014-02-24 20:33:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-24 20:33:15 +0100 |
commit | 83193989575c6cbe06a326156bc0dfcf55f5b31b (patch) | |
tree | 8cc20f767e0b1c3214daddf4e57f540fc66f8c58 /src | |
parent | a1509876de8541faaaf803383f6f52cfdf93918e (diff) | |
download | mpd-83193989575c6cbe06a326156bc0dfcf55f5b31b.tar.gz mpd-83193989575c6cbe06a326156bc0dfcf55f5b31b.tar.xz mpd-83193989575c6cbe06a326156bc0dfcf55f5b31b.zip |
output/openal: use usleep() instead of g_usleep()
Diffstat (limited to '')
-rw-r--r-- | src/output/plugins/OpenALOutputPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/plugins/OpenALOutputPlugin.cxx b/src/output/plugins/OpenALOutputPlugin.cxx index 344f23f4f..2f095c0a4 100644 --- a/src/output/plugins/OpenALOutputPlugin.cxx +++ b/src/output/plugins/OpenALOutputPlugin.cxx @@ -23,7 +23,7 @@ #include "util/Error.hxx" #include "util/Domain.hxx" -#include <glib.h> +#include <unistd.h> #ifndef __APPLE__ #include <AL/al.h> @@ -235,7 +235,7 @@ openal_play(AudioOutput *ao, const void *chunk, size_t size, } else { /* wait for processed buffer */ while (!openal_has_processed(od)) - g_usleep(10); + usleep(10); alSourceUnqueueBuffers(od->source, 1, &buffer); } |