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 574312 - Add mark for base volume instead of 100%
Add mark for base volume instead of 100%
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: gnome-volume-control
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-05 22:04 UTC by Bastien Nocera
Modified: 2009-05-14 14:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-media-add-100%-mark.patch (753 bytes, patch)
2009-03-12 15:49 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2009-03-05 22:04:50 UTC
Inputs that support dB go all the way up to 150. There should be a mark for 100%. See bug 567536 comment 4.
Comment 1 Bastien Nocera 2009-03-12 15:49:40 UTC
Created attachment 130532 [details] [review]
gnome-media-add-100%-mark.patch
Comment 2 Lennart Poettering 2009-03-23 17:04:48 UTC
Oh, and a mark for the "base volume" as exported in the sink/sources would be good too, if it differs from PA_VOLUME_NORM and PA_VOLUME_MUTED.
Comment 3 Bastien Nocera 2009-05-07 14:55:45 UTC
(In reply to comment #2)
> Oh, and a mark for the "base volume" as exported in the sink/sources would be
> good too, if it differs from PA_VOLUME_NORM and PA_VOLUME_MUTED.

We don't really have that much space for this though. And it's not very good UI-wise either as the marks are sticky.

commit 265a129527b2346f7d971e01811970b4cb9157e9
Author: Bastien Nocera <hadess@hadess.net>
Date:   Thu May 7 15:52:24 2009 +0100

    Bug 574312 – Add mark at 100% for inputs
    
    Inputs that support dB go all the way up to 150%, so add a mark
    for 100%.
Comment 4 Lennart Poettering 2009-05-08 20:20:11 UTC
Bastien, if you only want to show one marker then please show base_volume instead of 100% if possible and if different from PA_VOLUME_MUTED.

Something like this would be good:

if (base_volume > PA_VOLUME_MUTED && base_volume < PA_VOLUME_NORM)
   add_marker(base_volume);
else if (amplified)
   add_marker(100%);

Oh, and ideally for both playback and recording, even if you don't extend the scale to 150% for playback.
Comment 5 Marc-Andre Lureau 2009-05-08 20:21:59 UTC
reopening
Comment 6 Lennart Poettering 2009-05-13 17:49:09 UTC
As discussed on IRC it might make sense not to expose the base volume as markers but by means of colors in some way. 

Here are my suggestion:

A) if decibel volumes are supported both for sinks and for sources the volume range should be extended to 150% or so. (We already have that for sources, but I think this should be allowed for sinks, too. It is useful if you play some movies on unamplified speakers and has been requested many times on the the PA IRC channel, PA ML)

B) If decibel volumes are supported and base_volume is > MUTED and < NORM, then the part of the slider between MUTED and base_volume should be colored green. The part of the slider between base_volume and NORM should be colored yellow. And the part > NORM should be colored red.

C) If decibel volumes are supported and base_volumes equals MUTED or NORM the part between MUTED and NORM should be colored green, and everything > NORM should be red. No part shall be yellow.

D) If no decibel volumes are supported, the range cannot be extended, and hence is limited to MUTED..NORM. 

E) If no decibel volumes are supported and if base_volume is > MUTED and < NORM, the part < base_volume shall be colored green, the part > base_volume shall be colored yellow. No part shall be red.

F) If no decibel volumes are supported and if base_volume equals MUTED or NORM the part entire slider should be green.

I'd assume that the coloring would be implemented as smooth gradient. If that's the case then in cases E and F it might be an idea to start the gradient to red at the end of the slider, but not actually become fully red, because the slider ends at NORM.
Comment 7 Bastien Nocera 2009-05-13 18:16:05 UTC
File a separate bug please. I'll make the changes as described above to mark the "base volume" instead of 100% when a source is amplified, but that has nothing to do with markers anymore.
Comment 8 Lennart Poettering 2009-05-13 18:24:27 UTC
(In reply to comment #7)
> File a separate bug please. I'll make the changes as described above to mark
> the "base volume" instead of 100% when a source is amplified, but that has
> nothing to do with markers anymore.

Done, see bug 582516
Comment 9 Bastien Nocera 2009-05-14 14:37:15 UTC
commit 4b0c56e4c7771c1560f3a1b0facf61680231cea8
Author: Bastien Nocera <hadess@hadess.net>
Date:   Thu May 14 15:30:16 2009 +0100

    Bug 574312 – Add mark for base volume instead of 100%
    
    When the base volume is different from 100% volume, show that
    in the source volume bar.