After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 547490 - use a vumeter instead of progressbar for input level
use a vumeter instead of progressbar for input level
Status: RESOLVED OBSOLETE
Product: gnome-media
Classification: Deprecated
Component: Gnome-Sound-Recorder
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-12 20:26 UTC by Frederic Peters
Modified: 2015-01-19 11:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
gnome-sound-recorder with vumeter widget (10.11 KB, patch)
2008-08-12 20:28 UTC, Frederic Peters
none Details | Review
Use same gtkvumeter as Buzztard (24.93 KB, patch)
2008-12-05 21:48 UTC, Frederic Peters
none Details | Review
gtkvumeter rewritten to use cairo + some little changes (19.97 KB, patch)
2008-12-06 19:24 UTC, Frederic Peters
none Details | Review

Description Frederic Peters 2008-08-12 20:26:33 UTC
> Changes since 2.22.0:
>
>  * gnome-sound-recorder now has a slick new icon, and a record
>    level indicator, which might have ui/usability improvements.

The progress bar (tracking peak dB) could be replaced by a vumeter widget, this would bring support for both stereo tracks, and rms as well as peak level.
Comment 1 Frederic Peters 2008-08-12 20:28:46 UTC
Created attachment 116452 [details] [review]
gnome-sound-recorder with vumeter widget

Implement a vumeter widget, and use it in gnome-sound-recorder.

You can see it in action at http://www.0d.be/tmp/gnome-recorder-vumeter.ogv

It may need some code to nicely interact wrt accessibility, but I don't know what would be needed for that.
Comment 2 Marc-Andre Lureau 2008-08-12 21:26:00 UTC
nice! nice! nice! merci fred! 

Bastien, did you want to write volume widgets with some vumeter for pa volume?
Comment 3 Bastien Nocera 2008-08-12 21:28:22 UTC
Something similar, yes, but that would be integrated into the slider widget though. If Frederic fancies giving it a try :)
Comment 4 Frederic Peters 2008-08-12 21:31:01 UTC
What's the slider widget?, I don't have pulseaudio running but I sure could give it a try.
Comment 5 Bastien Nocera 2008-08-12 21:35:21 UTC
The slider widget would be the knob you tweak to change the volume. Check the current gnome-volume-control and replace the "fill" in the sliders by a vu-meter (see the green bit in http://www.gnome.org/~clarkbw/designs/volume%20control/vista/speakers.PNG)

We're also looking at using a widget exactly like yours to have in the control-center (see the sound level progress bar in the mockups at https://fedoraproject.org/wiki/Features/VolumeControl#Test_Plan_and_User_Experience)
Comment 6 Frederic Peters 2008-08-12 21:49:06 UTC
Looks like it amounts to replacing the call to gtk_paint_slider in gtk_range_expose by custom code to draw the green/yellow/red background; I'll try to get that working tomorrow.
Comment 7 Marc-Andre Lureau 2008-12-04 22:51:52 UTC
Frederic, I wonder if you know about this widget set (Stefan Kost is using it in Buzztard and love it): http://calf.sourceforge.net/?id=4
Comment 8 Frederic Peters 2008-12-04 23:08:47 UTC
Looks nice; I see gtkvumeter.[ch] in buzztard source only has this license statement: "This widget has been release as freeware"; Buzztard is GPL (at least its COPYING file is, some files have LGPL headers) and gnome-sound-recorder is LGPL; some checking needs to be done here.

Anyway I'll update my patch to use this widget.
Comment 9 Frederic Peters 2008-12-05 21:48:45 UTC
Created attachment 124026 [details] [review]
Use same gtkvumeter as Buzztard

Rewrote patch to use the same GtkVumeter as Buzztard.

Some notes:
 - licensing concerns (see previous comment)
 - doesn't really look like on calf screenshots (continuous color shade,
   no "unlit" color)
 - too bad it says "PLEASE NOTE: the falloff is not yet implemented"
 - should probably get away off gtk_ namespace, rename and ship in libegg?

Anyway the plan to have a single vumeter widget and work on it is the best course of action.
Comment 10 Frederic Peters 2008-12-06 19:24:40 UTC
Created attachment 124066 [details] [review]
gtkvumeter rewritten to use cairo + some little changes

I rewrote gtkvumeter.[ch] to use cairo (it was listed as a TODO item in the file); there is no API change.  I tested the logarithmic scale option, but not the widget in vertical position.
Comment 11 Marc-Andre Lureau 2008-12-14 20:06:11 UTC
pretty :)

I am all for it!
Comment 12 William Jon McCann 2008-12-14 20:09:39 UTC
Cool.  Didn't see this until now.  Was actually going to write one today!
Comment 13 William Jon McCann 2008-12-14 20:15:58 UTC
The license of the gtkvumeter.{c,h} is clearly unacceptable as it is now.  Freeware is not a license nor does it have any accepted definition.  LGPL would be best I guess.
Comment 14 Frederic Peters 2008-12-14 20:52:31 UTC
http://mumblelina.com/gtk/gtkVUMeter-gtk2.0-1.0.tar.gz has it with this header:

/***************************************************************************
 *            gtkvumeter.c
 *
 *  Fri Jan 10 20:06:23 2003
 *  Copyright  2003  Todd Goyen
 *  wettoad@knighthoodofbuh.org
 *  Source code is LGPL'd,
 *  but may be distributed under any other open source license
 ****************************************************************************/

I will s/gtk/egg/ and add a standard LGPL header; hopefully tomorrow morning.
Comment 15 Stefan Sauer (gstreamer, gtkdoc dev) 2009-03-04 20:16:37 UTC
Frederic, FYI - I have integrated your back to buzztard. I also made some fixes (the gradients are diagonal) and changed the look a bit (led segments). Thanks for the cairo port!

If there is still interest I can s/gtk/egg/ and reattach it here.
Comment 16 Bastien Nocera 2015-01-19 11:34:02 UTC
gnome-media has been obsolete since the release of GNOME 3, nearly 4 years ago. Furthermore, the gnome-sound-recorder program in gnome-media has been replaced by the stand-alone, rewritten, gnome-sound-recorder program which has a different interface.

The new program should not be affected by the bugs you filed, however, please make sure to file new bugs against the gnome-sound-recorder product.