X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcanvas-waveview.h;h=9ece3f5425561f22cdeb819379f627d2537893c5;hb=25eb9f406960aa8e36ccd90e2cd4397f372bd0fa;hp=89c193a440dc1ffe36cc2c59bf2f6b57a418d0e5;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git diff --git a/gtk2_ardour/canvas-waveview.h b/gtk2_ardour/canvas-waveview.h index 89c193a440..9ece3f5425 100644 --- a/gtk2_ardour/canvas-waveview.h +++ b/gtk2_ardour/canvas-waveview.h @@ -64,6 +64,13 @@ struct _GnomeCanvasWaveViewCache GnomeCanvasWaveViewCache* gnome_canvas_waveview_cache_new (); 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. */