From 0428d5cf5f24a2bc1f6d141c804468f8d62aa23b Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sat, 20 May 2006 22:42:15 +0000 Subject: Initial port of the spectrum element Original commit message from CVS: * configure.ac: * gst/spectrum/demo-osssrc.c: (spectrum_chain), (main): * gst/spectrum/fix_fft.c: (gst_spectrum_fix_dot): * gst/spectrum/gstspectrum.c: (gst_spectrum_get_type), (gst_spectrum_base_init), (gst_spectrum_class_init), (gst_spectrum_init), (gst_spectrum_dispose), (gst_spectrum_set_property), (gst_spectrum_chain): * gst/spectrum/gstspectrum.h: Initial port of the spectrum element --- gst/spectrum/gstspectrum.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gst/spectrum/gstspectrum.h') diff --git a/gst/spectrum/gstspectrum.h b/gst/spectrum/gstspectrum.h index 8cc546ec..2dbc2242 100644 --- a/gst/spectrum/gstspectrum.h +++ b/gst/spectrum/gstspectrum.h @@ -39,7 +39,7 @@ extern "C" { #define GST_IS_SPECTRUM(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPECTRUM)) #define GST_IS_SPECTRUM_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SPECTRUM)) + (G_TYPE_CHECK_CLASS_TYPE((obj),GST_TYPE_SPECTRUM)) typedef struct _GstSpectrum GstSpectrum; typedef struct _GstSpectrumClass GstSpectrumClass; @@ -50,6 +50,8 @@ struct _GstSpectrum { GstPad *sinkpad,*srcpad; gint width; + gint base, len; + gint16 *re, *im, *loud; }; struct _GstSpectrumClass { -- cgit v1.2.1