From d6e3e6d9c0fe39534930c647755c4219eb39f39f Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 8 Feb 2008 02:00:49 +0000 Subject: Remove the equalizer plugin, which has moved to -good Original commit message from CVS: * configure.ac: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-bad-plugins-docs.sgml: * docs/plugins/gst-plugins-bad-plugins-sections.txt: * docs/plugins/inspect/plugin-equalizer.xml: * gst/equalizer/.cvsignore: * gst/equalizer/Makefile.am: * gst/equalizer/demo.c: * gst/equalizer/gstiirequalizer.c: * gst/equalizer/gstiirequalizer.h: * gst/equalizer/gstiirequalizer10bands.c: * gst/equalizer/gstiirequalizer10bands.h: * gst/equalizer/gstiirequalizer3bands.c: * gst/equalizer/gstiirequalizer3bands.h: * gst/equalizer/gstiirequalizernbands.c: * gst/equalizer/gstiirequalizernbands.h: * tests/check/Makefile.am: * tests/check/elements/.cvsignore: * tests/check/elements/equalizer.c: Remove the equalizer plugin, which has moved to -good --- gst/equalizer/gstiirequalizer3bands.c | 152 ---------------------------------- 1 file changed, 152 deletions(-) delete mode 100644 gst/equalizer/gstiirequalizer3bands.c (limited to 'gst/equalizer/gstiirequalizer3bands.c') diff --git a/gst/equalizer/gstiirequalizer3bands.c b/gst/equalizer/gstiirequalizer3bands.c deleted file mode 100644 index f1e11d50..00000000 --- a/gst/equalizer/gstiirequalizer3bands.c +++ /dev/null @@ -1,152 +0,0 @@ -/* GStreamer - * Copyright (C) <2007> Stefan Kost - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -/** - * SECTION:element-equalizer-3bands - * @short_description: 3-band equalizer - * - * - * - * The 3-band equalizer element allows to change the gain of a low frequency, - * medium frequency and high frequency band. - * - * Example launch line - * - * - * gst-launch filesrc location=song.ogg ! oggdemux ! vorbisdec ! audioconvert ! equalizer-3bands band1=6.0 ! alsasink - * - * This raises the volume of the 2nd band, which is at 1110 Hz, by 6 db. - * - * - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "gstiirequalizer.h" -#include "gstiirequalizer3bands.h" - -enum -{ - ARG_BAND0 = 1, - ARG_BAND1, - ARG_BAND2, -}; - -static void gst_iir_equalizer_3bands_set_property (GObject * object, - guint prop_id, const GValue * value, GParamSpec * pspec); -static void gst_iir_equalizer_3bands_get_property (GObject * object, - guint prop_id, GValue * value, GParamSpec * pspec); - -GST_DEBUG_CATEGORY_EXTERN (equalizer_debug); -#define GST_CAT_DEFAULT equalizer_debug - -GST_BOILERPLATE (GstIirEqualizer3Bands, gst_iir_equalizer_3bands, - GstIirEqualizer, GST_TYPE_IIR_EQUALIZER); - -/* equalizer implementation */ - -static void -gst_iir_equalizer_3bands_base_init (gpointer g_class) -{ - GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - const GstElementDetails iir_equalizer_details = - GST_ELEMENT_DETAILS ("3 Band Equalizer", - "Filter/Effect/Audio", - "Direct Form 3 band IIR equalizer", - "Stefan Kost "); - - gst_element_class_set_details (element_class, &iir_equalizer_details); -} - -static void -gst_iir_equalizer_3bands_class_init (GstIirEqualizer3BandsClass * klass) -{ - GObjectClass *gobject_class = (GObjectClass *) klass; - - gobject_class->set_property = gst_iir_equalizer_3bands_set_property; - gobject_class->get_property = gst_iir_equalizer_3bands_get_property; - - g_object_class_install_property (gobject_class, ARG_BAND0, - g_param_spec_double ("band0", "110 Hz", - "gain for the frequency band 100 Hz, ranging from -24.0 to +12.0", - -24.0, 12.0, 0.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); - g_object_class_install_property (gobject_class, ARG_BAND1, - g_param_spec_double ("band1", "1100 Hz", - "gain for the frequency band 1100 Hz, ranging from -24.0 to +12.0", - -24.0, 12.0, 0.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); - g_object_class_install_property (gobject_class, ARG_BAND2, - g_param_spec_double ("band2", "11 kHz", - "gain for the frequency band 11 kHz, ranging from -24.0 to +12.0", - -24.0, 12.0, 0.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); -} - -static void -gst_iir_equalizer_3bands_init (GstIirEqualizer3Bands * equ_n, - GstIirEqualizer3BandsClass * g_class) -{ - GstIirEqualizer *equ = GST_IIR_EQUALIZER (equ_n); - - gst_iir_equalizer_compute_frequencies (equ, 3); -} - -static void -gst_iir_equalizer_3bands_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec) -{ - GstIirEqualizer *equ = GST_IIR_EQUALIZER (object); - - switch (prop_id) { - case ARG_BAND0: - gst_child_proxy_set_property (GST_OBJECT (equ), "band0::gain", value); - break; - case ARG_BAND1: - gst_child_proxy_set_property (GST_OBJECT (equ), "band1::gain", value); - break; - case ARG_BAND2: - gst_child_proxy_set_property (GST_OBJECT (equ), "band2::gain", value); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static void -gst_iir_equalizer_3bands_get_property (GObject * object, guint prop_id, - GValue * value, GParamSpec * pspec) -{ - GstIirEqualizer *equ = GST_IIR_EQUALIZER (object); - - switch (prop_id) { - case ARG_BAND0: - gst_child_proxy_get_property (GST_OBJECT (equ), "band0::gain", value); - break; - case ARG_BAND1: - gst_child_proxy_get_property (GST_OBJECT (equ), "band1::gain", value); - break; - case ARG_BAND2: - gst_child_proxy_get_property (GST_OBJECT (equ), "band2::gain", value); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} -- cgit v1.2.1