From 482372577e6eaa9f4b857dc3a335e67efd1ee367 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 4 Dec 2015 19:09:48 -0800 Subject: Avoid using usleep in the examples We already have an al_nssleep wrapper in the common lib we can use. --- examples/allatency.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/allatency.c') diff --git a/examples/allatency.c b/examples/allatency.c index deb13d3b..afef43ca 100644 --- a/examples/allatency.c +++ b/examples/allatency.c @@ -182,7 +182,7 @@ int main(int argc, char **argv) /* Play the sound until it finishes. */ alSourcePlay(source); do { - Sleep(10); + al_nssleep(10000000); alGetSourcei(source, AL_SOURCE_STATE, &state); /* Get the source offset and latency. AL_SEC_OFFSET_LATENCY_SOFT will -- cgit v1.2.3