I used the below code to set the volume.
play = gst_element_factory_make ( "playbin", "play" );
g_object_set ( G_OBJECT(play), "uri", argv[1], NULL );
g_object_set ( G_OBJECT(play), "volume", 10.0, NULL );
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
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.
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
is same. I could make a slight difference for the range 0.1/0.2.
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
(a.out:13506): GLib-GObject-WARNING **: IA__g_object_set_valist: object
class `GstPlayBin' has no property named `\x81\xc3\xdb\xc4\u0003'.
Is there any way to get/set the balance level?
/Ganesh
On Mon, Jul 21, 2008 at 6:53 PM, Danilo Freire <xharada at gmail.com> wrote:
> yes, it is possible,
> could you paste the code in here?
>> On Mon, Jul 21, 2008 at 6:22 AM, Akbar Basha <akbar.sdl at gmail.com> wrote:
>>> Hi,
>>>> Is it possible to set the volume for Playbin element?
>> When I try to set the volume , says GstPlayBin has no property named.
>>>> Regards,
>> Akbar
>>>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>>http://moblin-contest.org/redirect.php?banner_id=100&url=/>> _______________________________________________
>> gstreamer-devel mailing list
>>gstreamer-devel at lists.sourceforge.net>>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>>>>>>> --
> Danilo Freire
> Laboratório de Sistemas Embarcados e Computação Pervasiva
> Centro de Engenharia Elétrica e Informática - CEEI
> Universidade Federal de Campina Grande - UFCG
>> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/> _______________________________________________
> gstreamer-devel mailing list
>gstreamer-devel at lists.sourceforge.net>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080722/ff4361f2/attachment.htm>