output/openal: use usleep() instead of g_usleep()
This commit is contained in:
parent
a1509876de
commit
8319398957
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user