Thank you Bastien. Actually I don't want to get the volume level, just if some sinks are muted. My intention is to disable sound settings controls in an application if gnome sounds are muted. Then I should read PulseAudio documentation to figure out how to do this. Thank you.
On Tue, Aug 16, 2011 at 7:18 PM, Bastien Nocera <[email protected]> wrote: > On Sun, 2011-08-07 at 15:39 +0200, Juan Rafael Garcia Blanco wrote: >> Hello, >> I'm trying to retrieve the volume setting of alerts. I've done a >> search using d-feet to check if some module exposes that setting, but >> I could not find anything. I have also checked dconf, and found >> nothing. I have read some of the gnome-control-center source code >> relating to sound settings, and it seems to use hardwire pulseaudio. >> Then I have two questions: does Gnome use definitely pulseaudio as >> audio server (I mean on every linux/bsd distribution)? and is there >> some way to retrieve the information I want without dealing with >> pulseaudio APIs? > > We use the PulseAudio settings for that. Any particular reason why you > would want to get that volume? If it's just to play some sound at that > volume, there's easier ways to do it (like not caring, and playing the > sound saying you are an event sound). > > _______________________________________________ gnome-love mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-love
