GNOME Bugzilla – Bug 570343
equalizer bands != specified parameters
Last modified: 2009-02-03 12:17:51 UTC
s$ GST_DEBUG="equ*:3" gst-launch-0.10 audiotestsrc ! equalizer-nbands num-bands=4 band0::gain=-21 band0::frequency=947.0 band0::bandwidth=100 ! alsasink Setting pipeline to PAUSED ... gstiirequalizer.c:446:setup_filter: gain = -21, bandwidth= 92.468, frequency = 66.234, a0 = 0.98034, a1 = -1.9567, a2=0.97649 b1 = 1.9567, b2 = -0.95682 gstiirequalizer.c:446:setup_filter: gain = 0, bandwidth= 519.99, frequency = 372.46, a0 = 1, a1 = -1.9258, a2=0.92853 b1 = 1.9258, b2 = -0.92853 gstiirequalizer.c:446:setup_filter: gain = 0, bandwidth= 2924.1, frequency = 2094.5, a0 = 1, a1 = -1.578, a2=0.65102 b1 = 1.578, b2 = -0.65102 gstiirequalizer.c:446:setup_filter: gain = 0, bandwidth= 16443, frequency = 11778, a0 = 1, a1 = 0.063587, a2=-0.40638 b1 = -0.063587, b2 = 0.40638
First observation - the frequency parameter is called "freq" not "frequency". GST_DEBUG="equ*:4" gst-launch-0.10 audiotestsrc ! equalizer-nbands num-bands=4 band0::gain=-21 band0::freq=947.0 band0::bandwidth=100 ! alsasink
commit 7de49319d77452bb580c004ce2d460002b72d1d3 Author: Stefan Kost <ensonic@users.sf.net> Date: Tue Feb 3 14:09:26 2009 +0200 equalizer: Don't reset frequency bands from user settings. Fixes #570343. Move reallocating the history buffer out of _compute_frequencies() and call the right function as needed. Add some logging and tweak the formatting of existing logging. Simplify setting need_new_coefficients when changing properties.