diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-05-21 16:23:23 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-05-21 16:23:23 +0000 |
commit | c270b7e1238d272d10d0483f9e750c39654b6576 (patch) | |
tree | 3f2d1d69264daeb4bea307bbc14f1647e98bc234 /gst/spectrum/gstspectrum.h | |
parent | 0428d5cf5f24a2bc1f6d141c804468f8d62aa23b (diff) | |
download | gst-plugins-bad-c270b7e1238d272d10d0483f9e750c39654b6576.tar.gz gst-plugins-bad-c270b7e1238d272d10d0483f9e750c39654b6576.tar.bz2 gst-plugins-bad-c270b7e1238d272d10d0483f9e750c39654b6576.zip |
gst/spectrum/Makefile.am: Link to base libraries
Original commit message from CVS:
* gst/spectrum/Makefile.am:
Link to base libraries
* gst/spectrum/demo-osssrc.c: (main):
use new threshhold property
* gst/spectrum/gstspectrum.c: (gst_spectrum_class_init),
(gst_spectrum_init), (gst_spectrum_dispose),
(gst_spectrum_set_property), (gst_spectrum_set_sink_caps),
(gst_spectrum_get_sink_caps), (gst_spectrum_chain),
(gst_spectrum_change_state):
* gst/spectrum/gstspectrum.h:
Use gst_adapter, support multiple-channels, add threshold property for
result, add docs, fix resulting spectrum range (was including mirrored
results)
Diffstat (limited to 'gst/spectrum/gstspectrum.h')
-rw-r--r-- | gst/spectrum/gstspectrum.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gst/spectrum/gstspectrum.h b/gst/spectrum/gstspectrum.h index 2dbc2242..8e536786 100644 --- a/gst/spectrum/gstspectrum.h +++ b/gst/spectrum/gstspectrum.h @@ -23,23 +23,18 @@ #include <gst/gst.h> - +#include <gst/base/gstadapter.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ -#define GST_TYPE_SPECTRUM \ - (gst_spectrum_get_type()) -#define GST_SPECTRUM(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPECTRUM,GstSpectrum)) -#define GST_SPECTRUM_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SPECTRUM,GstSpectrum)) -#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((obj),GST_TYPE_SPECTRUM)) +#define GST_TYPE_SPECTRUM (gst_spectrum_get_type()) +#define GST_SPECTRUM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPECTRUM,GstSpectrum)) +#define GST_IS_SPECTRUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPECTRUM)) +#define GST_SPECTRUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_SPECTRUM,GstSpectrum)) +#define GST_IS_SPECTRUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_SPECTRUM)) typedef struct _GstSpectrum GstSpectrum; typedef struct _GstSpectrumClass GstSpectrumClass; @@ -48,8 +43,13 @@ struct _GstSpectrum { GstElement element; GstPad *sinkpad,*srcpad; + GstAdapter *adapter; + + /* properties */ + guint width; + gint threshold; - gint width; + gint channels; gint base, len; gint16 *re, *im, *loud; }; |