Mercurial > audlegacy-plugins
diff src/console/Audacious_Driver.cxx @ 559:d5782f3bd760 trunk
[svn] Update plugins to the new input plugin API
author | iabervon |
---|---|
date | Sun, 28 Jan 2007 17:02:41 -0800 |
parents | 4d8b92b55acf |
children | 914c96de3244 |
line wrap: on
line diff
--- a/src/console/Audacious_Driver.cxx Sun Jan 28 14:37:17 2007 -0800 +++ b/src/console/Audacious_Driver.cxx Sun Jan 28 17:02:41 2007 -0800 @@ -290,8 +290,9 @@ return NULL; } -static void play_file( char* path ) +static void play_file( InputPlayback *data ) { + char* path = data->filename; unload_file(); // identify file @@ -373,13 +374,13 @@ decode_thread = g_thread_create( play_loop_track, NULL, TRUE, NULL ); } -static void seek( gint time ) +static void seek( InputPlayback * data, gint time ) { // TODO: use thread-safe atomic set pending_seek = time; } -static void console_stop(void) +static void console_stop(InputPlayback *data) { console_ip_is_going = 0; if ( decode_thread ) @@ -391,12 +392,12 @@ unload_file(); } -static void console_pause(gshort p) +static void console_pause(InputPlayback * data, gshort p) { console_ip.output->pause(p); } -static int get_time(void) +static int get_time(InputPlayback *data) { return console_ip_is_going ? console_ip.output->output_time() : -1; }