[gst-devel] using volume element
sameer at damagehead.com
Mon Oct 15 18:47:42 CEST 2007
there's an example available in the gst-plugins-base package
this should take care of all your worries.
On Mon, 2007-10-15 at 20:12 +0530, Vinod Nanjaiah wrote:
> I tried changing playback volume in the following way, but it didn't work.
> GstElement *volume;
> g_object_set (G_OBJECT(volume), "volume", 0.5, NULL);
> I get the following error when I execute the program.
> (helloworld:7358): GLib-GObject-CRITICAL **: g_object_set: assertion
> `G_IS_OBJECT (object)' failed
> Please let me know if there is something that I am doing incorrectly.
> Message: 8
> Date: Sat, 13 Oct 2007 17:02:35 +0300
> From: Stefan Kost <ensonic at hora-obscura.de>
> Subject: Re: [gst-devel] using volume element
> To: Vinod Nanjaiah <Vinod_Nanjaiah at mindtree.com>
> Cc: gstreamer-devel at lists.sourceforge.net
> Message-ID: <4710CFFB.5010009 at hora-obscura.de>
> Content-Type: text/plain; charset=ISO-8859-1
> 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.
> > gins/html/gst-plugins-base-plugins-volume.html
> > I searched extensively on the net but could not find any information on
> Its a gobject with properties. Just
> will set volume to 50%
> This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.
> E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.
> Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
> MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
More information about the gstreamer-devel