diff src/shnplug/shn.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 761e17b23e0c
children fa9f85cebade
line wrap: on
line diff
--- a/src/shnplug/shn.c	Sun Sep 09 22:06:10 2007 +0300
+++ b/src/shnplug/shn.c	Sun Sep 09 22:25:40 2007 +0300
@@ -796,7 +796,7 @@
 		this_shn->wave_header.channels, bytes_to_write, this_shn->vars.buffer);
 
 	while(shn_ip.output->buffer_free() < bytes_to_write && playback->playing && this_shn->vars.seek_to == -1)
-		xmms_usleep(10000);
+		g_usleep(10000);
 
 	if(playback->playing && this_shn->vars.seek_to == -1) {
 		if (shn_cfg.swap_bytes)
@@ -1187,7 +1187,7 @@
                 goto restart;
               }
               else
-                xmms_usleep(10000);
+                g_usleep(10000);
             }
 
             goto cleanup;
@@ -1227,7 +1227,7 @@
     write_and_wait(this_shn,this_shn->vars.bytes_in_buf);
     shn_ip.output->buffer_free();
     shn_ip.output->buffer_free();
-    xmms_usleep(10000);
+    g_usleep(10000);
 
 finish:
 
@@ -1328,7 +1328,7 @@
 	shnfile->vars.seek_to = time;
 
 	while (shnfile->vars.seek_to != -1)
-		xmms_usleep(10000);
+		g_usleep(10000);
 }
 
 static void shn_get_file_info(char *filename, char **title, int *length)