[maemo-developers] Controlling the volume

From: Frédéric Crozat fred at crozat.net
Date: Wed Nov 7 23:09:03 EET 2007
Le mercredi 07 novembre 2007 à 21:39 +0100, Alberto Garcia a écrit :
> Hi all. I'm developing a Last.fm player for the 770/N800/N810 and I'd
> like to know what's the proper way to implement the volume control.
> 
> I'm using gstreamer (dspmp3sink) to play the files. Is there any way
> of controlling the volume with gstreamer?
> 
> I tried with gst_audio_default_registry_mixer_filter() but I had no
> luck.

For UI part, it is best to use HildonV/HVolumeBar.

For control part, you can change "volume" property on dspmp3sink. Try
using gst-inspect-0.10 dspmp3sink to discover the various properties on
this particular sink.

> Should I use alsa instead?

If you use alsa, you will modify the overall device output, not just
vagalume volume.

-- 
Frédéric Crozat 

More information about the maemo-developers mailing list