[gst-devel] Can't manage volume with GstVolume

Stefan Kost ensonic at hora-obscura.de
Sun Nov 2 22:00:26 CET 2008


hi,

Sergio schrieb:
> I'm working on gstreamer (0.10.19), but I can't change the playback
> volume. I tried with GstVolume element in this way:
> 
>     self->gst_volume = gst_element_factory_make("volume", "my-volume");
>     gst_bin_add_many(GST_BIN(self->gst_bin), source, parser,
>                      decoder, conv, sink, self->gst_volume, NULL);
> 
>     gst_element_link(source, parser);
>     gst_element_link_many(decoder, conv, sink, self->gst_volume, NULL);

What about putting volume before the sink? ALso check the return results from
e.g. gst_element_link_many.

Stefan

> 
> The playback runs fine, but when I try to change the volume with:
> 
>     g_object_set(G_OBJECT(self->gst_volume), "volume", value, NULL);
> 
> nothing happens.
> (`value' range is 0.0,1.0)
> 
> Can someone give me a hint? TIA,
> 
> s.
> 
> -------------------------------------------------------------------------
> 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





More information about the gstreamer-devel mailing list