[gst-devel] using volume element

Stefan Kost ensonic at hora-obscura.de
Sat Oct 13 16:02:35 CEST 2007


hi,

Vinod Nanjaiah wrote:
> Hi All!
> Can someone please point me to an example that shows how to use the volume
> element in a program to control the playback volume?
> 
> The following link only shows how to set volume from command line using
> gst-launch.
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plu
> gins/html/gst-plugins-base-plugins-volume.html
> 
> I searched extensively on the net but could not find any information on this.

Its a gobject with properties. Just g_object_set(volume_element,"volume",0.5,NULL);
will set volume to 50%

Stefan





More information about the gstreamer-devel mailing list