<div dir="ltr"><div>Sorry for the late reply as I was on vacation.</div>
<div> </div>
<div>When i execute the following the code with volume as integer values gives the warning message without the sound. When the volume is either floating point or casting to double it plays perfectly.<br></div>
<div> </div>
<div>g_object_set ( G_OBJECT(play), "volume", 10.0, NULL );<br><br>It gives runtime error when the volume type is unsigned int . Like the following code<br><br>unsigned int val = 8;<br>g_object_set ( G_OBJECT(play), "volume", val, NULL );<br>
<br>Where as in command line it works without any of the above hassles.,<br><br> <br><br></div>
<div>Thanks,</div>
<div>Akbar<br><br> </div>
<div><span class="gmail_quote">On 7/22/08, <b class="gmail_sendername">Danilo Freire</b> <<a href="mailto:xharada@gmail.com" target="_blank">xharada@gmail.com</a>> 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 <<a href="mailto:ganesh.kundapur@gmail.com" target="_blank">ganesh.kundapur@gmail.com</a>> 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> <br> play = gst_element_factory_make ( "playbin", "play" );<br> g_object_set ( G_OBJECT(play), "uri", argv[1], NULL );<br>
g_object_set ( G_OBJECT(play), "volume", 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'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> Moreover if i give the volume as int/unsigned int rather than double as g_object_set ( G_OBJECT(play), "volume", 3, NULL ); it throws a runtime error<br>
(a.out:13506): GLib-GObject-WARNING **: IA__g_object_set_valist: object class `GstPlayBin' has no property named `\x81\xc3\xdb\xc4\u0003'.<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 <<a href="mailto:xharada@gmail.com" target="_blank">xharada@gmail.com</a>> 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 <<a href="mailto:akbar.sdl@gmail.com" target="_blank">akbar.sdl@gmail.com</a>> wrote:<br> </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> </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> </div>
<div>Regards,</div>
<div>Akbar</div><br> </div></div>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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's challenge<br>Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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> </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>