This doenst work. How works but without level notifications is how i posted before.<br><br>But
I want the level be after the replay gain volume. So I can get the
signal level after the replay gain have done its gain adjust but not
influenced by the playbin volume.<br>
<br>I dont know how to do something like that<br><br>Thanks in advance<br>J.Rios<br><br><div class="gmail_quote">On Wed, Dec 30, 2009 at 8:44 AM, Arnout Vandecappelle <span dir="ltr"><<a href="mailto:arnout@mind.be">arnout@mind.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Without actually trying anything or knowing how the level element works,<br>
I'd say that at least you have to link your elements appropriately. See<br>
below.<br>
<br>
I'm surprised that the replaygain does work...<br>
<br>
Regards,<br>
Arnout<br>
<div class="im"><br>
On Monday 28 December 2009 13:34:11, J. Rios wrote:<br>
> Hello,<br>
> Im tryign to incorporate the level element into a playbin2. This is<br>
> the significant part of what I have tried<br>
><br>
> GstElement * outputsink;<br>
> outputsink = gst_element_factory_make( "gconfaudiosink", "audio-sink"<br>
> ); ...<br>
> GstElement * m_Playbin = gst_element_factory_make( "playbin2", "play"<br>
> ); ...<br>
> GstElement * level = gst_element_factory_make( "level", "levelctrl"<br>
> );<br>
><br>
> GstElement * replay = gst_element_factory_make( "rgvolume",<br>
> "replaygain" );<br>
><br>
><br>
</div> gst_bin_add( GST_BIN( m_Playbin ), replay );<br>
gst_bin_add( GST_BIN( m_Playbin ), outputsink );<br>
gst_element_link_many ( level, replay, outputsink );<br>
g_object_set( G_OBJECT( m_Playbin ), "audio-sink", level, NULL );<br>
<div><div></div><div class="h5">><br>
> g_object_set( level, "message", true, NULL );<br>
><br>
> g_object_set( G_OBJECT( m_Playbin ), "flags", 0x02|0x10, NULL );<br>
><br>
> gst_bus_add_watch( gst_pipeline_get_bus( GST_PIPELINE( m_Playbin ) ),<br>
> ( GstBusFunc ) gst_bus_async_callback, this );<br>
<br>
</div></div><font color="#888888">--<br>
Arnout Vandecappelle arnout at mind be<br>
Senior Embedded Software Architect +32-16-286540<br>
Essensium/Mind <a href="http://www.mind.be" target="_blank">http://www.mind.be</a><br>
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven<br>
LinkedIn profile: <a href="http://www.linkedin.com/in/arnoutvandecappelle" target="_blank">http://www.linkedin.com/in/arnoutvandecappelle</a><br>
GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43<br>
</font></blockquote></div><br>