After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570343 - equalizer bands != specified parameters
equalizer bands != specified parameters
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-03 11:03 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2009-02-03 12:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2009-02-03 11:03:33 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
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2009-02-03 11:41:25 UTC
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
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2009-02-03 12:17:51 UTC
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.