From 352cb6fef9ba3d73a3376244498e01498be68d43 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 12 Nov 2004 17:37:49 +0000 Subject: Update libvisual to 0.1.7. Link in the debug handling to gstreamer Original commit message from CVS: * configure.ac: * ext/libvisual/visual.c: (gst_visual_get_type), (libvisual_log_handler), (gst_visual_getcaps), (gst_visual_srclink), (gst_visual_change_state), (make_valid_name), (plugin_init): Update libvisual to 0.1.7. Link in the debug handling to gstreamer * ext/smoothwave/Makefile.am: * ext/smoothwave/demo-osssrc.c: (main): * ext/smoothwave/gstsmoothwave.c: (gst_smoothwave_class_init), (gst_smoothwave_init), (gst_smoothwave_dispose), (gst_sw_sinklink), (gst_sw_srclink), (gst_smoothwave_chain), (gst_sw_change_state), (plugin_init): * ext/smoothwave/gstsmoothwave.h: Make gstsmoothwave a working element in the 20th century. * gst/chart/gstchart.c: (gst_chart_init), (gst_chart_srcconnect): Fix incorrect link function --- gst/smoothwave/gstsmoothwave.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'gst/smoothwave/gstsmoothwave.h') diff --git a/gst/smoothwave/gstsmoothwave.h b/gst/smoothwave/gstsmoothwave.h index 87165131..a0dfe402 100644 --- a/gst/smoothwave/gstsmoothwave.h +++ b/gst/smoothwave/gstsmoothwave.h @@ -23,13 +23,12 @@ #include -#include +#include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ - #define GST_TYPE_SMOOTHWAVE \ (gst_smoothwave_get_type()) #define GST_SMOOTHWAVE(obj) \ @@ -48,12 +47,17 @@ struct _GstSmoothWave { GstElement element; GstPad *sinkpad,*srcpad; + GstAdapter *adapter; - gint width,height; - - GdkRgbCmap *cmap; - GtkWidget *image; guchar *imagebuffer; + GstClockTime audio_basetime; + guint64 samples_consumed; + + gint sample_rate; + gint width,height; + gdouble fps; + gint channels; + guint32 palette[256]; }; struct _GstSmoothWaveClass { -- cgit v1.2.1