diff options
Diffstat (limited to 'test/test_tone.c')
-rw-r--r-- | test/test_tone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_tone.c b/test/test_tone.c index 296253c..f51a2dc 100644 --- a/test/test_tone.c +++ b/test/test_tone.c @@ -6,7 +6,7 @@ */ /* libcubeb api/function test. Plays a simple tone. */ - +#define _XOPEN_SOURCE 500 #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -103,7 +103,7 @@ int main(int argc, char *argv[]) } cubeb_stream_start(stream); - sleep(1); + usleep(500000); cubeb_stream_stop(stream); cubeb_stream_destroy(stream); |