[gst-devel] Problem with equalizer-10bands
Yogesh Marwaha
yogeshm.007 at gmail.com
Thu Apr 23 08:33:44 CEST 2009
Greetings,
I've just started implementing equaliser support for my application.
Though the higher frequency bands seem to work well, the lower
frequency bands are distorting the audio; even an adjustment of +1dB
is not working correctly, and once any of the lower band is adjusted,
a thump is heard from the speaker whenever any band is adjusted.
Here is how I set-up gstreamer in my app: -
---------------------------------------------------------------
m_pPlayBin = gst_element_factory_make("playbin", "gravity-playbin");
m_pVisualisation = gst_element_factory_make("goom",
"gravity-playbin-visualisation");
g_object_set(G_OBJECT(m_pPlayBin), "vis-plugin", m_pVisualisation, NULL);
m_pVideoSink = gst_element_factory_make("xvimagesink",
"gravity-playbin-video");
g_object_set(G_OBJECT(m_pPlayBin), "video-sink", m_pVideoSink, NULL);
m_pAudioSink = gst_element_factory_make("alsasink",
"gravity-playbin-audio");
m_pEqualiser = gst_element_factory_make("equalizer-10bands",
"gravity-equaliser");
m_pAudioBin = gst_bin_new("audio-bin");
gst_bin_add_many(GST_BIN(m_pAudioBin), m_pEqualiser, m_pAudioSink, NULL);
gst_element_link_many(m_pEqualiser, m_pAudioSink, NULL);
m_pAudioBinPad = gst_element_get_static_pad(m_pEqualiser, "sink");
gst_element_add_pad(m_pAudioBin, gst_ghost_pad_new("sink", m_pAudioBinPad));
g_object_set(G_OBJECT(m_pPlayBin), "audio-sink", m_pAudioBin, NULL);
GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(m_pPlayBin));
gst_bus_add_watch(bus, cb, this);
gst_element_set_state(m_pPlayBin, GST_STATE_READY);
---------------------------------------------------------------
This is how I set equaliser band values:
---------------------------------------------------------------
g_object_set(m_pEqualiser, "band0", (gdouble)value, NULL);
---------------------------------------------------------------
Any help to fix the problem is welcome. Also, is there any app which
already uses equalizer-10band plugin so I can how it works?
Regards,
--
Yogesh M
http://snakeeyes.wordpress.com/
More information about the gstreamer-devel
mailing list