change volume of pipeline created with gst_parse_launch()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

change volume of pipeline created with gst_parse_launch()

mapcol
How can you change volume to pipelines like

pipe = gst_parse_launch("audiotestsrc ! audioconvert ! audioresample ! autoaudiosink");

This does not seem to work:
gdouble vol = 0.6;
g_object_set(pipe, "volume", vol, NULL);

Do I have to insert a ! volume ! element, then retrievet and set it's property or is there another simplest way?



 
Reply | Threaded
Open this post in threaded view
|

Re: change volume of pipeline created with gst_parse_launch()

Andres Gonzalez
Hi,

yes, you need to insert a "volume" element then you can change the properties on that element to control the volume of the audio. I use the volume element a lot and it works great.

-Andres