Bug 172392 - Clicking on the mute button again does not mute half of the times
Summary: Clicking on the mute button again does not mute half of the times
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Playback (show other bugs)
Version: 2.0-SVN
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 12:46 UTC by Bassio
Modified: 2009-12-09 11:29 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bassio 2008-10-08 12:46:39 UTC
Version:           1.92.2 (using 4.1.2 (KDE 4.1.2), Kubuntu packages)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-19-generic

Expected behaviour:
When clicking on the mute button again, the volume should return as it was before muting.

However, this only happens half of the times, the other half it simply does not work and it keeps the volume muted.
Comment 1 Seb Ruiz 2008-10-08 13:07:23 UTC
I can't reproduce this. Which phonon backend are you using?
Comment 2 Bassio 2008-10-08 14:56:13 UTC
Xine phonon backend

o.2
Comment 3 Mark Kretschmann 2008-10-08 15:12:05 UTC
I cannot reproduce this either, with xine-phonon.

That said, I'm not totally happy with the implementation: When muting, the volume bar is set to 0.

I'd rather see this done like in KMix: When muted, volume bar stays the same, but the volume icon is shown with a red cross overlayed.
Comment 4 Bassio 2008-10-08 19:28:32 UTC
This is strange. But mine behaves very strangely.

@Mark: about the implementation: I was going to say that .. but you are the devs
Comment 5 simon 2008-11-01 07:03:26 UTC
i can confirm the non reactive behaviour:

click speaker icon -> mutes
click again -> unmutes

change volume, click icon -> mutes
click again -> no reaction

so when changing the volume between mutes it doesn't react, you have to click into the volume bar to change it again
Comment 6 Mark Kretschmann 2008-11-09 13:03:18 UTC
I can reproduce the problem following Simon's instructions.

The "Mute" implementation currently is a bit of a hack. We should rewrite it in 2.1 so that it doesn't actually change the volume any more. Also we should have an extra icon for muted.
Comment 7 Rafael Tesser 2008-11-29 02:30:28 UTC
There's another thing that must e fixed: clicking in the volume icon with the right button mutes the sound. It should only bring the context menu.
Comment 8 Seb Ruiz 2008-11-29 04:04:17 UTC
@Rafael: this has already been fixed
Comment 9 Gary Steinert 2008-12-17 04:41:50 UTC
I've done a bit of digging and the only cause I can see is a rogue EngineObserver seems to be muting the engine after it has been unmuted (through EngineObserver::engineVolumeChanged( int ) ).

Other than that possibility everything seems to be working fine.

Gary
Comment 10 Gary Steinert 2008-12-22 05:02:48 UTC
Seems to be a problem with QSlider::setValue() as that is the only bit of the code I haven't been able to rule out (called from Amarok::Slider::setValue() )

I can't give any more details than that unfortunately =(

But I have ruled out our code =) Unless theres an EngineObserver I've missed (I've checked the OSD and the VolumeSlider widget)

Gary
Comment 11 simon 2009-03-11 23:43:12 UTC
is ther anything that can be done here?
Comment 12 Kevin Funk 2009-03-15 22:49:00 UTC
SVN commit 939855 by kfunk:

Make mute button actually work. Committing with good old subversion as git seems to freak out when adding images.


 M  +1 -0      images/CMakeLists.txt  
 AM            images/volume_muted_icon.png  
 M  +0 -3      widgets/SliderWidget.h  
 M  +12 -4     widgets/VolumeWidget.cpp  
 M  +4 -1      widgets/VolumeWidget.h
Comment 13 simon 2009-03-15 22:50:47 UTC
thanks for the quick fix, works great!


Author:  kfunk
Revision:  939855
Commit Message: Make mute button actually work. Committing with good old subversion as git seems to freak out when adding images.