gmusicbrowser Forum

Main board => Questions => Topic started by: ackernan on September 17, 2011, 20:23:31

Title: Volume meter
Post by: ackernan on September 17, 2011, 20:23:31
Has anyone used a volume/vu meter in a widget? 
Title: Re:Volume meter
Post by: VastOne on September 17, 2011, 22:05:16
Just to show the volume level? 

I do not know if you know it, but by hovering over the volume icon you can get the volume level and on all of my layouts, you can scroll the icon up or down to change the volume...
Title: Re: Volume meter
Post by: ackernan on September 18, 2011, 01:55:34
Yea, I know about that.  That's not what I'm talking about.  I'm asking about a meter that changes with the sound level.  Something like the bottom bar in this picture.

(http://dl.dropbox.com/u/23122621/Volume%20Control_066.png)
Title: Re: Volume meter
Post by: Quentin Sculo on September 18, 2011, 10:09:29
There is the Visual widget that can do this kind of things, it allows you to use one of the Visualization-class gstreamer plugins, though I'm not sure there is a gstreamer  visualization plugin that only shows the sound level.
The Visual widget only works with gstreamer, and, as a few other things using gstreamer, is not very stable, due to a perl-glib bug concerning foreign threads (threads that have been created by gstreamer itself), there is a mostly working patch in bugzilla, hopefully it will be completed soon.

Thinking about it, it might be possible to simply ask gstreamer for the current sound level, and then simply draw something with it. Though I'm not sure how fluid it would be.
Title: Re: Volume meter
Post by: ackernan on September 18, 2011, 11:21:04
Thanks for the info.
Title: Re: Volume meter
Post by: VastOne on September 18, 2011, 16:36:25
@ackernan

Based on the suggestion from Quentin, I will take a look at a conky lua function to try to do a VU meter..
Title: Re: Volume meter
Post by: ackernan on September 19, 2011, 01:12:13
Okey dokey, thanks for the help.