From 86dab97c0258d1ae42e0fade45d22844b9466797 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Fri, 10 Aug 2007 05:20:06 +0000 Subject: gst/filter/gstbpwsinc.*: Apply the same changes to the bandpass filter: Original commit message from CVS: * gst/filter/gstbpwsinc.c: (gst_bpwsinc_class_init), (gst_bpwsinc_init), (process_32), (process_64), (bpwsinc_build_kernel), (bpwsinc_setup), (bpwsinc_get_unit_size), (bpwsinc_transform), (bpwsinc_set_property), (bpwsinc_get_property): * gst/filter/gstbpwsinc.h: Apply the same changes to the bandpass filter: - Support double input - Fix processing for input with >1 channels - Specify frequency in Hz - Specify actual filter kernel length - Use transform instead of transform_ip as we're working out of place anyway - Factor out filter kernel generation and update the filter kernel when the properties are set Fix bandpass filter kernel generation to actually generate a bandpass filter by creating a highpass instead of a second lowpass. * gst/filter/gstlpwsinc.c: (gst_lpwsinc_class_init): Small formatting fix. --- gst/audiofx/audiowsinclimit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gst/audiofx/audiowsinclimit.c') diff --git a/gst/audiofx/audiowsinclimit.c b/gst/audiofx/audiowsinclimit.c index 24906d12..2debfe77 100644 --- a/gst/audiofx/audiowsinclimit.c +++ b/gst/audiofx/audiowsinclimit.c @@ -126,10 +126,10 @@ gst_lpwsinc_window_get_type (void) #define ALLOWED_CAPS \ - "audio/x-raw-float," \ + "audio/x-raw-float, " \ " width = (int) { 32, 64 }, " \ - " endianness = (int) BYTE_ORDER," \ - " rate = (int) [ 1, MAX ]," \ + " endianness = (int) BYTE_ORDER, " \ + " rate = (int) [ 1, MAX ], " \ " channels = (int) [ 1, MAX ]" #define DEBUG_INIT(bla) \ @@ -199,7 +199,7 @@ gst_lpwsinc_class_init (GstLPWSincClass * klass) g_object_class_install_property (gobject_class, PROP_FREQUENCY, g_param_spec_double ("frequency", "Frequency", - "Cut-off Frequency", 0.0, G_MAXDOUBLE, 0.0, + "Cut-off Frequency (Hz)", 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); g_object_class_install_property (gobject_class, PROP_LENGTH, -- cgit