diff src/OSS4/audio.c @ 1676:aee4ebea943a

xmms_usleep() was removed, use g_usleep()
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 09 Sep 2007 22:25:40 +0300
parents d0f1e147cf62
children 8c93d207a4d9
line wrap: on
line diff
--- a/src/OSS4/audio.c	Sun Sep 09 22:06:10 2007 +0300
+++ b/src/OSS4/audio.c	Sun Sep 09 22:25:40 2007 +0300
@@ -305,7 +305,7 @@
 #endif
     if (realtime && !ioctl(fd, SNDCTL_DSP_GETOSPACE, &abuf_info)) {
         while (abuf_info.bytes < length) {
-            xmms_usleep(10000);
+            g_usleep(10000);
             if (ioctl(fd, SNDCTL_DSP_GETOSPACE, &abuf_info))
                 break;
         }
@@ -511,7 +511,7 @@
     if (!realtime) {
         flush = time;
         while (flush != -1)
-            xmms_usleep(10000);
+            g_usleep(10000);
     }
     else {
         ioctl(fd, SNDCTL_DSP_RESET, 0);
@@ -566,7 +566,7 @@
             }
         }
         else
-            xmms_usleep(10000);
+            g_usleep(10000);
         oss_calc_device_buffer_used();
         if (do_pause && !paused) {
             do_pause = FALSE;