diff Plugins/Input/timidity/src/xmms-timidity.c @ 425:e36afef679e8 trunk

[svn] timidity fixes... remove duplicated code provided by produce_audio() -_-.
author nenolod
date Fri, 13 Jan 2006 20:48:46 -0800
parents c7119bdbcc76
children 3181b4fe23ea
line wrap: on
line diff
--- a/Plugins/Input/timidity/src/xmms-timidity.c	Fri Jan 13 20:03:07 2006 -0800
+++ b/Plugins/Input/timidity/src/xmms-timidity.c	Fri Jan 13 20:48:46 2006 -0800
@@ -270,20 +270,12 @@
 					bytes_read, buffer, NULL);
 		else xmmstimid_eof = TRUE;
 
-		while (xmmstimid_going && xmmstimid_seek_to == -1 &&
-				(bytes_read == 0 ||
-				 xmmstimid_ip.output->buffer_free() < bytes_read))
-			xmms_usleep(10000);
-
 		if (xmmstimid_seek_to != -1) {
 			mid_song_seek(xmmstimid_song, xmmstimid_seek_to * 1000);
 			xmmstimid_ip.output->flush(xmmstimid_seek_to * 1000);
 			xmmstimid_seek_to = -1;
 			bytes_read = 0;
 		}
-		
-		if (xmmstimid_going && bytes_read != 0)
-			xmmstimid_ip.output->write_audio(buffer, bytes_read);
 	}
 
 	g_free(buffer);