diff src/projectm/main.c @ 1035:711ec8d39ca6 trunk

[svn] Changed alarm and projectm plugins so they use auddrct now.
author magma
date Sat, 12 May 2007 15:03:26 -0700
parents aaab0bede198
children 2cf4d0182a86
line wrap: on
line diff
--- a/src/projectm/main.c	Sat May 12 05:21:09 2007 -0700
+++ b/src/projectm/main.c	Sat May 12 15:03:26 2007 -0700
@@ -40,7 +40,7 @@
 #include <SDL/SDL_thread.h>
 #include <GL/gl.h>
 #include <GL/glu.h>
-#include <audacious/beepctrl.h>
+#include <audacious/auddrct.h>
 #include <math.h>
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -140,11 +140,10 @@
 	}
 #endif
 
-	pos = xmms_remote_get_playlist_pos(projectM_vtable.xmms_session);
+	pos = audacious_drct_pl_get_pos();
 	/* Only check every 1 second for title change, otherwise check pos */
 	if(check_title || pos != last_pos) {
-		title = xmms_remote_get_playlist_title(
-				projectM_vtable.xmms_session, pos);
+		title = audacious_drct_pl_get_title(pos);
 		if(title && (!last_title || strcmp(last_title,title))) {
 			globalPM->title = title;
 			globalPM->drawtitle = 1;