diff src/tonegen/tonegen.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 d124034ebea3
children 914c96de3244
line wrap: on
line diff
--- a/src/tonegen/tonegen.c	Sun Jan 28 14:37:17 2007 -0800
+++ b/src/tonegen/tonegen.c	Sun Jan 28 17:02:41 2007 -0800
@@ -178,7 +178,7 @@
 }
 	
 
-static void tone_play(char *filename)
+static void tone_play(InputPlayback *playback, char *filename)
 {
 	GArray* frequencies;
 	char *name;
@@ -202,7 +202,7 @@
 	play_thread = g_thread_create((GThreadFunc)play_loop, frequencies, TRUE, NULL);
 }
 
-static void tone_stop(void)
+static void tone_stop(InputPlayback *data)
 {
 	if (going)
 	{
@@ -212,12 +212,12 @@
 	}
 }
 
-static void tone_pause(short paused)
+static void tone_pause(InputPlayback *data, short paused)
 {
 	tone_ip.output->pause(paused);
 }
 
-static int tone_get_time(void)
+static int tone_get_time(InputPlayback *data)
 {
 	if (audio_error)
 		return -2;