diff audacious/visualization.c @ 1649:f3934d790a2e trunk

[svn] - abstractionalize a lot of stuff, build still broken, live with it
author nenolod
date Thu, 07 Sep 2006 21:44:05 -0700
parents 697a073fd4f5
children a6e6d3500c13
line wrap: on
line diff
--- a/audacious/visualization.c	Thu Sep 07 20:53:57 2006 -0700
+++ b/audacious/visualization.c	Thu Sep 07 21:44:05 2006 -0700
@@ -32,7 +32,7 @@
 #include "playback.h"
 #include "plugin.h"
 #include "prefswin.h"
-#include "widgets/widgetcore.h"
+#include "interface.h"
 
 VisPluginData vp_data = {
     NULL,
@@ -280,12 +280,15 @@
     gint i;
 
     if (!pcm_data || nch < 1) {
+	current_interface->send_pcm_data(pcm_data, nch, length);
+#if 0
         if (cfg.vis_type != VIS_OFF) {
             if (cfg.player_shaded && cfg.player_visible)
                 svis_timeout_func(mainwin_svis, NULL);
             else
                 vis_timeout_func(active_vis, NULL);
         }
+#endif
         return;
     }
 
@@ -326,6 +329,8 @@
         node = g_list_next(node);
     }
 
+    current_interface->send_pcm_data(pcm_data, nch, length);
+#if 0
     if (cfg.vis_type == VIS_OFF)
         return;
 
@@ -434,4 +439,5 @@
         svis_timeout_func(mainwin_svis, intern_vis_data);
     else
         vis_timeout_func(active_vis, intern_vis_data);
+#endif
 }