diff options
author | Chris Robinson <[email protected]> | 2015-12-04 19:09:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-12-04 19:09:48 -0800 |
commit | 482372577e6eaa9f4b857dc3a335e67efd1ee367 (patch) | |
tree | 0c025eae5873f32d1dcf641a675c3d95a4eb1dd3 /examples/alreverb.c | |
parent | 4e6acfa0d549281efcbe8293d95b76a37deb370d (diff) |
Avoid using usleep in the examples
We already have an al_nssleep wrapper in the common lib we can use.
Diffstat (limited to 'examples/alreverb.c')
-rw-r--r-- | examples/alreverb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/alreverb.c b/examples/alreverb.c index 420b1c55..7d2bb343 100644 --- a/examples/alreverb.c +++ b/examples/alreverb.c @@ -311,7 +311,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); } while(alGetError() == AL_NO_ERROR && state == AL_PLAYING); |