<div dir="ltr"><div>Sorry for the late reply as I was on vacation.</div>
<div>&nbsp;</div>
<div>When i execute the following the code with&nbsp;volume as integer values&nbsp;gives the warning message without the sound. When the volume is either floating point or casting to double it plays perfectly.<br></div>
<div>&nbsp;</div>
<div>g_object_set ( G_OBJECT(play), &quot;volume&quot;, 10.0, NULL );<br><br>It gives runtime error when&nbsp; the volume type is unsigned int . Like the following code<br><br>unsigned int val = 8;<br>g_object_set ( G_OBJECT(play), &quot;volume&quot;, val, NULL );<br>
<br>Where as in command line it works without any of the above hassles.,<br><br>&nbsp;<br><br></div>
<div>Thanks,</div>
<div>Akbar<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 7/22/08, <b class="gmail_sendername">Danilo Freire</b> &lt;<a href="mailto:xharada@gmail.com" target="_blank">xharada@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div dir="ltr">thats weird,<br><br>The runtime error is because G_Obejct just check the property set when it is set.<br><br>but the problem with the volume change, I have no glue. try to run using:<br><br>gst_launch -v playbin uri=file:///somewhere volume=10.0<br>

<br>and look for some problem in the verbose messages. If necessary use:<br><br>GST_DEBUG=3 gst_launch playbin uri=file:///somewhere volume=10.0<br><br>[]s 
<div><span><br><br>
<div class="gmail_quote">On Tue, Jul 22, 2008 at 6:03 AM, Ganesh Kundapur &lt;<a href="mailto:ganesh.kundapur@gmail.com" target="_blank">ganesh.kundapur@gmail.com</a>&gt; wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">I used the below code to set the volume.<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; play = gst_element_factory_make ( &quot;playbin&quot;, &quot;play&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_object_set ( G_OBJECT(play), &quot;uri&quot;, argv[1], NULL );<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_object_set ( G_OBJECT(play), &quot;volume&quot;, 10.0, NULL );<br><br>I muted the volume by using the volume control and played the audio file with volume range 1.0 and 10.0. I&#39;m able to hear the sound but couldnt<br>

make out the difference between the range 1.0 and 10.0 as the sound emitted for the range 1.0 and 10.0 seems to be same.<br><br>I raised the volume to the full by using volume control, i got the same behavior as above. It seems for the volume range 1.0 and 10.0, sound<br>

is same. I could make a slight difference for the range 0.1/0.2.<br><br>&nbsp; Moreover if i give the volume as int/unsigned int rather than double as g_object_set ( G_OBJECT(play), &quot;volume&quot;, 3, NULL ); it throws a runtime error<br>

(a.out:13506): GLib-GObject-WARNING **: IA__g_object_set_valist: object class `GstPlayBin&#39; has no property named `\x81\xc3\xdb\xc4\u0003&#39;.<br><br>Is there any way to get/set the balance level?<br><font color="#888888"><br>

/Ganesh</font> 
<div>
<div></div>
<div><br><br><br><br>
<div class="gmail_quote">On Mon, Jul 21, 2008 at 6:53 PM, Danilo Freire &lt;<a href="mailto:xharada@gmail.com" target="_blank">xharada@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">yes, it is possible,<br>could you paste the code in here?<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Mon, Jul 21, 2008 at 6:22 AM, Akbar Basha &lt;<a href="mailto:akbar.sdl@gmail.com" target="_blank">akbar.sdl@gmail.com</a>&gt; wrote:<br>&nbsp;</div></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div></div>
<div>
<div>Hi,</div>
<div>&nbsp;</div>
<div>Is it possible to set the volume for Playbin element?</div>
<div>When I try to set the volume , says GstPlayBin has no property named.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Akbar</div><br>&nbsp;</div></div>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>

Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>

_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br><br></blockquote>
</div><font color="#888888"><br><br clear="all"><br>-- <br>Danilo Freire<br>Laboratório de Sistemas Embarcados e Computação Pervasiva<br>Centro de Engenharia Elétrica e Informática - CEEI<br>Universidade Federal de Campina Grande - UFCG </font></div>

<br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>

Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>

_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br><br></blockquote>
</div><br>&nbsp;</div></div></div></blockquote></div><br><br clear="all"><br>-- <br>Danilo Freire<br>Laboratório de Sistemas Embarcados e Computação Pervasiva<br>Centro de Engenharia Elétrica e Informática - CEEI<br>Universidade Federal de Campina Grande - UFCG </span></div>

</div></blockquote></div><br>
</div>