summaryrefslogtreecommitdiffstats
path: root/gst/audiofx/audiowsinclimit.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/audiofx/audiowsinclimit.h')
-rw-r--r--gst/audiofx/audiowsinclimit.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/gst/audiofx/audiowsinclimit.h b/gst/audiofx/audiowsinclimit.h
index b781a422..d30b3938 100644
--- a/gst/audiofx/audiowsinclimit.h
+++ b/gst/audiofx/audiowsinclimit.h
@@ -3,6 +3,7 @@
* GStreamer
* Copyright (C) 1999-2001 Erik Walthinsen <omega@cse.ogi.edu>
* 2006 Dreamlab Technologies Ltd. <mathis.hofer@dreamlab.net>
+ * 2007-2009 Sebastian Dröge <sebastian.droege@collabora.co.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -33,10 +34,12 @@
#include <gst/gst.h>
#include <gst/audio/gstaudiofilter.h>
+#include "audiofxbasefirfilter.h"
+
G_BEGIN_DECLS
#define GST_TYPE_AUDIO_WSINC_LIMIT \
- (audio_wsinclimit_get_type())
+ (gst_audio_wsinclimit_get_type())
#define GST_AUDIO_WSINC_LIMIT(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_WSINC_LIMIT,GstAudioWSincLimit))
#define GST_AUDIO_WSINC_LIMIT_CLASS(klass) \
@@ -49,38 +52,26 @@ G_BEGIN_DECLS
typedef struct _GstAudioWSincLimit GstAudioWSincLimit;
typedef struct _GstAudioWSincLimitClass GstAudioWSincLimitClass;
-typedef void (*GstAudioWSincLimitProcessFunc) (GstAudioWSincLimit *, guint8 *, guint8 *, guint);
-
/**
* GstAudioWSincLimit:
*
* Opaque data structure.
*/
struct _GstAudioWSincLimit {
- GstAudioFilter element;
+ GstAudioFXBaseFIRFilter parent;
/* < private > */
- GstAudioWSincLimitProcessFunc process;
-
gint mode;
gint window;
gfloat cutoff;
- gint kernel_length; /* length of the filter kernel */
-
- gdouble *residue; /* buffer for left-over samples from previous buffer */
- gdouble *kernel; /* filter kernel */
- gboolean have_kernel;
- gint residue_length;
- guint64 latency;
- GstClockTime next_ts;
- guint64 next_off;
+ gint kernel_length;
};
struct _GstAudioWSincLimitClass {
- GstAudioFilterClass parent_class;
+ GstAudioFXBaseFIRFilterClass parent;
};
-GType audio_wsinclimit_get_type (void);
+GType gst_audio_wsinclimit_get_type (void);
G_END_DECLS