output/openal: use usleep() instead of g_usleep()

This commit is contained in:
Max Kellermann 2014-02-24 20:33:12 +01:00
parent a1509876de
commit 8319398957

View File

@ -23,7 +23,7 @@
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include <glib.h> #include <unistd.h>
#ifndef __APPLE__ #ifndef __APPLE__
#include <AL/al.h> #include <AL/al.h>
@ -235,7 +235,7 @@ openal_play(AudioOutput *ao, const void *chunk, size_t size,
} else { } else {
/* wait for processed buffer */ /* wait for processed buffer */
while (!openal_has_processed(od)) while (!openal_has_processed(od))
g_usleep(10); usleep(10);
alSourceUnqueueBuffers(od->source, 1, &buffer); alSourceUnqueueBuffers(od->source, 1, &buffer);
} }