diff src/audacious/input.c @ 4596:a77d02342ee1

change visualization timeout; export calc_stereo_pcm, calc_mono_pcm and calc_mono_freq to PAPI
author Tomasz Mon <desowin@gmail.com>
date Sat, 31 May 2008 14:17:15 +0200
parents ab8bc8a89a52
children 31a4cc265f31
line wrap: on
line diff
--- a/src/audacious/input.c	Fri May 30 16:05:03 2008 +0200
+++ b/src/audacious/input.c	Sat May 31 14:17:15 2008 +0200
@@ -59,16 +59,6 @@
 
 G_LOCK_DEFINE_STATIC(vis_mutex);
 
-struct _VisNode {
-    gint time;
-    gint nch;
-    gint length;                /* number of samples per channel */
-    gint16 data[2][512];
-};
-
-typedef struct _VisNode VisNode;
-
-
 InputPluginData ip_data = {
     NULL,
     NULL,
@@ -770,10 +760,11 @@
 
     if (found) {
         vis_send_data(vis->data, vis->nch, vis->length);
+        hook_call("visualization timeout", vis);
         g_free(vis);
     }
     else
-        vis_send_data(NULL, 0, 0);
+        hook_call("visualization timeout", NULL);
 }
 
 /* FIXME: move this somewhere else */