How to set a volume property in audiomixer's sink pads?

Natanael Mojica neithanmo at gmail.com
Wed Jun 1 23:59:58 UTC 2016


Hi:

I have a audiomixer element in my pipeline, and others elements linked into
that
but now I want to change de volume of any audiosource connected to a
audiomixer

        gst_bin_add(GST_BIN(pipeline), source->get_bin());
        GstPad *mixer_pad = gst_element_request_pad (audiomixer,
mix_template, NULL, NULL);
        GstPad *a_pad = gst_element_get_static_pad(source->get_bin(),
"audiosrc");
        if (gst_pad_link (a_pad, mixer_pad) != GST_PAD_LINK_OK ){
                 g_critical ("link audio source to audiomixer failed.\n");
                 exit(1);
         }

for example

filesrc -> decodbin -> queue -> audiomixer (sink0)

filesrc2 .....                               -> audiomixer(sink1)
....
....
...                                               -> audiomixer (sinkn)
My question is , how to set mute all sink less sink2 o sink3 , or set a
volume property in 4 of the sink2 pad

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160601/f1e2fa30/attachment.html>


More information about the gstreamer-devel mailing list