From 7ce779f57981decdfa08a36501c7e9ee856b08e0 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 14 Mar 2007 14:48:08 +0000 Subject: gst/equalizer/: Add 3 and 10 band version and add missing gst_object_sync_values. Original commit message from CVS: * gst/equalizer/Makefile.am: * gst/equalizer/gstiirequalizer.c: (_do_init), (gst_iir_equalizer_band_set_property), (gst_iir_equalizer_band_class_init), (gst_iir_equalizer_band_get_type), (gst_iir_equalizer_child_proxy_get_child_by_index), (gst_iir_equalizer_child_proxy_get_children_count), (gst_iir_equalizer_child_proxy_interface_init), (setup_filter), (gst_iir_equalizer_compute_frequencies), (gst_iir_equalizer_transform_ip), (plugin_init): * gst/equalizer/gstiirequalizer10bands.c: (gst_iir_equalizer_10bands_base_init), (gst_iir_equalizer_10bands_class_init), (gst_iir_equalizer_10bands_init), (gst_iir_equalizer_10bands_set_property), (gst_iir_equalizer_10bands_get_property): * gst/equalizer/gstiirequalizer10bands.h: * gst/equalizer/gstiirequalizer3bands.c: (gst_iir_equalizer_3bands_base_init), (gst_iir_equalizer_3bands_class_init), (gst_iir_equalizer_3bands_init), (gst_iir_equalizer_3bands_set_property), (gst_iir_equalizer_3bands_get_property): * gst/equalizer/gstiirequalizer3bands.h: * gst/equalizer/gstiirequalizernbands.c: (gst_iir_equalizer_nbands_base_init), (gst_iir_equalizer_nbands_init): Add 3 and 10 band version and add missing gst_object_sync_values. * gst/spectrum/gstspectrum.c: (gst_spectrum_event), (gst_spectrum_transform_ip): Add some comments about float support. --- gst/equalizer/gstiirequalizernbands.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'gst/equalizer/gstiirequalizernbands.c') diff --git a/gst/equalizer/gstiirequalizernbands.c b/gst/equalizer/gstiirequalizernbands.c index 53d3c128..939085bb 100644 --- a/gst/equalizer/gstiirequalizernbands.c +++ b/gst/equalizer/gstiirequalizernbands.c @@ -18,9 +18,21 @@ * Boston, MA 02111-1307, USA. */ -/* +/** + * SECTION:element-equalizer-nbands * - * gst-launch filesrc location=song.ogg ! oggdemux ! vorbisdec ! audioconvert ! equalizer-nbands rband5::gain=-1.0 ! alsasink + * + * Example launch line + * + * The n-band equalizer element changes the frequency spectrum of the audio data. + * + * + * + * gst-launch filesrc location=song.ogg ! oggdemux ! vorbisdec ! audioconvert ! equalizer-nbands num-bands=15 band5::gain=-1.0 ! alsasink + * + * This make the equalizer use 15 bands and lowers the volume of the 5th band by FIXME db. + * + * */ #ifdef HAVE_CONFIG_H @@ -57,7 +69,7 @@ gst_iir_equalizer_nbands_base_init (gpointer g_class) GST_ELEMENT_DETAILS ("N Band Equalizer", "Filter/Effect/Audio", "Direct Form IIR equalizer", - "Benjamin Otte ," " Stefan Kost "); + "Benjamin Otte ," " Stefan Kost "); gst_element_class_set_details (element_class, &iir_equalizer_details); } -- cgit