One fix.
[ardour.git] / gtk2_ardour / canvas-waveview.h
index 89c193a440dc1ffe36cc2c59bf2f6b57a418d0e5..daa907e11047519a7e3f2dc31c12b4addd146d54 100644 (file)
@@ -61,9 +61,16 @@ struct _GnomeCanvasWaveViewCache
     gulong                        end;
 };
 
-GnomeCanvasWaveViewCache* gnome_canvas_waveview_cache_new ();
+GnomeCanvasWaveViewCache* gnome_canvas_waveview_cache_new (void);
 void                    gnome_canvas_waveview_cache_destroy (GnomeCanvasWaveViewCache*);
 
+void gnome_canvas_waveview_set_gradient_waveforms (int);
+
+typedef  gulong (*waveview_length_function_t)(void*);
+typedef  gulong (*waveview_sourcefile_length_function_t)(void*, double);
+typedef  void (*waveview_gain_curve_function_t)(void *arg, double start, double end, float* vector, gint64 veclen);
+typedef  void (*waveview_peak_function_t)(void*,gulong,gulong,gulong,gpointer,guint32,double);
+
 struct _GnomeCanvasWaveView
 {
     GnomeCanvasItem item;
@@ -74,10 +81,10 @@ struct _GnomeCanvasWaveView
 
     void *data_src;
     guint32 channel;
-       void (*peak_function)(void*,gulong,gulong,gulong,gpointer,guint32,double);
-    gulong (*length_function)(void *);
-    gulong (*sourcefile_length_function)(void*,double);
-    void (*gain_curve_function)(void *arg, double start, double end, float* vector, gint64 veclen);
+    waveview_peak_function_t peak_function;
+    waveview_length_function_t length_function;
+    waveview_sourcefile_length_function_t sourcefile_length_function;
+    waveview_gain_curve_function_t gain_curve_function;
     void *gain_src;
 
     /** x-axis: samples per canvas unit. */