<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Natanael<div class=""><br class=""></div><div class="">The audio mixer pads expose properties as objects they are. Let am_pad0, am_pad1, …, am_padN be the N pads of the audio mixer, then you can set their properties as:</div><div class=""><br class=""></div><div class=""><b class="">Mute all sources except am_pad0:</b></div><div class="">g_object_set (am_pad0, “mute”, FALSE, NULL);</div><div class=""><div class="">g_object_set (am_pad1, “mute”, TRUE, NULL);</div></div><div class=""><div class="">...</div><div class="">g_object_set (am_padN, “mute”, TRUE, NULL);</div></div><div class=""><br class=""></div><div class=""><b class="">Change volume of pads:</b></div><div class=""><div class="">g_object_set (am_pad0, “volume”, 5.0, NULL);</div><div class="">g_object_set (am_pad1, “volume”, 1.0, NULL);</div><div class=""><div class="">...</div><div class="">g_object_set (am_padN, “volume”, 10.0, NULL);</div></div></div><div class=""><br class=""></div><div class="">Refer to the video mixer’s documentation for more info:</div><div class=""><a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-audiomixer.html" class="">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-audiomixer.html</a></div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class=""><font size="1" class="">—</font></div><div class=""><font size="1" class="">Michael Gruner <<a href="mailto:michael.gruner@ridgerun.com" class="">michael.gruner@ridgerun.com</a>></font></div><div class=""><font size="1" class="">Embedded Linux and GStreamer solutions</font></div><div class=""><font size="1" class="">RidgeRun Engineering</font></div><div class=""><font size="1" class="">Contact Us - <a href="http://www.ridgerun.com/#!contact/c3vn" class="">http://www.ridgerun.com/#!contact/c3vn</a></font></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jun 1, 2016, at 17:59, Natanael Mojica <<a href="mailto:neithanmo@gmail.com" class="">neithanmo@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">Hi:<br class=""><br class="">I have a audiomixer element in my pipeline, and others elements linked into that<br class="">but now I want to change de volume of any audiosource connected to a audiomixer<br class=""><br class="">        gst_bin_add(GST_BIN(pipeline), source->get_bin());<br class="">        GstPad *mixer_pad = gst_element_request_pad (audiomixer, mix_template, NULL, NULL);<br class="">        GstPad *a_pad = gst_element_get_static_pad(source->get_bin(), "audiosrc");<br class="">        if (gst_pad_link (a_pad, mixer_pad) != GST_PAD_LINK_OK ){<br class="">                 g_critical ("link audio source to audiomixer failed.\n");<br class="">                 exit(1);<br class="">         }<br class=""><br class="">for example<br class=""><br class="">filesrc -> decodbin -> queue -> audiomixer (sink0)<br class=""><br class="">filesrc2 .....                               -> audiomixer(sink1)<br class="">....<br class="">....<br class="">...                                               -> audiomixer (sinkn)<br class="">My question is , how to set mute all sink less sink2 o sink3 , or set a volume property in 4 of the sink2 pad<br class=""><br class="">thanks<br class=""><br class=""></div></div></div></div>
_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></blockquote></div><br class=""></div></body></html>