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 139961 - Gnome-2.6 sound-mixer-applet climbs down the ladder
Gnome-2.6 sound-mixer-applet climbs down the ladder
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: mixer
2.5.x
Other Linux
: High major
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 139550 146173 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-04-13 19:19 UTC by Martin Willemoes Hansen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
Fixes a nasty rounding error within the gst part of the code (801 bytes, patch)
2004-05-11 16:47 UTC, Travis Snoozy
none Details | Review

Description Martin Willemoes Hansen 2004-04-13 19:19:15 UTC
When I set the volume with the sound-mixer-applet, 
it slowly climbs down until hits the bottom. 
If i set it to max then it stays. 

I have installed gnome-applets-2.6.0 and I use Alsa-1.0.2

Sound works okay, and it gets louder and more silent when
I move the volume-slider of the applet.

I use gnome-applets-2.6.0
Comment 1 Kjartan Maraas 2004-04-13 23:07:13 UTC
Hmm. This happens after moving the slider to a certain level and just leaving it
there? Sounds like you have problems with a moving mouse pointer or something
and that focus is still on the slider? Does it happen if you focus some other
app after setting the level? Do you have a stuck down arrow on your keyboard
maybe? :-)

Anyway, more detail on your setup would be appreciated.
Comment 2 Kjartan Maraas 2004-04-13 23:10:54 UTC
*** Bug 139550 has been marked as a duplicate of this bug. ***
Comment 3 Pat Suwalski 2004-04-13 23:26:52 UTC
See my bug. It happens when the OSS mixer compatibility is not loaded, so only
the Alsa mixer is running.

Essentially, if you set the popup volume control to maximum, over the next 10-15
seconds it will be at 0.

The same volume slider in the mixer window itself is not affected.

This has nothing to do with input devices.
Comment 4 Fred Blaise 2004-04-17 03:10:59 UTC
I am using Dropline gnome 2.6 and I have the same pb. However, this only shows
up when my preferences are set to use 'Master'. If I set to 'Volume', or
anything else I believe, it stays still and work properly.
Comment 5 Pat Suwalski 2004-04-17 03:23:33 UTC
Yes, this is a problem with the master volume only. The applet is not talking to
alsa properly. The control panel does it okay.
Comment 6 Travis Snoozy 2004-05-11 16:47:17 UTC
Created attachment 27612 [details] [review]
Fixes a nasty rounding error within the gst part of the code

There appears to be an off-by-3-or-4 bug in the return value of
gstreamer_normalize_volume. Can you say rounding error?

All of the doubles are cast straight to gint (truncating) -- this is a Bad
Thing, because the rounding always goes down. We need to be using 
``(gint) rint(double)''. I don't know how portable rint() is, but that is 
exactly what we need -- a round that rounds to the *nearest even integer*, 
otherwise we can get this ladder creep in the other direction (always rounding 

up.)

The underlying problem is that we are mapping between different integer scales,

and we are loosing a lot in the translation. We should -not- be using the 
output of our own lossy calculations to try and get the original input back 
(which is what we are doing here).
Comment 7 Kevin Vandersloot 2004-05-21 13:14:19 UTC
This should be fixed in 2.6.1 I think. Can you guys test with the newer version?
Comment 8 Martin Willemoes Hansen 2004-05-21 18:27:23 UTC
I use gnome-applets-2.6.1 now and the problem is fixed the leveler stays where
it is set to be. Also I have only enabled ALSA, no OSS interface stuff.
Comment 9 Dennis Smit 2004-05-21 19:36:50 UTC
Thanks for reporting back!

Did you have OSS interface stuff enabled at the time when you were reporting
the bug ?

Kevin what about the patch that is done by Travis ?
Comment 10 Martin Willemoes Hansen 2004-05-21 20:31:17 UTC
NP, No I did not have OSS interface enabled.
Comment 11 Dennis Smit 2004-05-21 21:19:07 UTC
In that case, thanks for reporting back, and i think we can close this bug!

I leave it open because of the patch that Travis has been attaching, Kevin
needs to look at it.
Comment 12 Kevin Vandersloot 2004-05-22 13:50:48 UTC
Yah, the same patch was applied in any other bug. Closing
Comment 13 Elijah Newren 2004-07-09 01:18:59 UTC
*** Bug 146173 has been marked as a duplicate of this bug. ***