diff src/metronom/metronom.c @ 559:d5782f3bd760 trunk

[svn] Update plugins to the new input plugin API
author iabervon
date Sun, 28 Jan 2007 17:02:41 -0800
parents 5fa8b0ca6d61
children 914c96de3244
line wrap: on
line diff
--- a/src/metronom/metronom.c	Sun Jan 28 14:37:17 2007 -0800
+++ b/src/metronom/metronom.c	Sun Jan 28 17:02:41 2007 -0800
@@ -152,8 +152,9 @@
 	g_thread_exit(NULL);
 }
 
-static void metronom_play(char *filename)
+static void metronom_play(InputPlayback *data)
 {
+        char *filename = data->filename;
 	gchar *name;
 	size_t count;	
 	metronom_t *pmetronom;
@@ -199,7 +200,7 @@
 	play_thread = g_thread_create((GThreadFunc)play_loop, pmetronom, TRUE, NULL);
 }
 
-static void metronom_stop(void)
+static void metronom_stop(InputPlayback *data)
 {
 	if (going)
 	{
@@ -209,12 +210,12 @@
 	}
 }
 
-static void metronom_pause(short paused)
+static void metronom_pause(InputPlayback *data, short paused)
 {
 	metronom_ip.output->pause(paused);
 }
 
-static int metronom_get_time(void)
+static int metronom_get_time(InputPlayback *data)
 {
 	if (audio_error)
 		return -2;