Bug 59434

Summary: noatun sets volume to 100% temporarily on startup
Product: noatun Reporter: richard
Component: generalAssignee: Multimedia Developers <kde-multimedia>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description richard 2003-06-06 17:12:28 UTC
Version:            (using KDE KDE 3.1.2)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.3 
OS:          Linux

Every time it starts, noatun temporarily sets the PCM volum to 100% before restoring it to the previous level. This is a problem when something else is playing.
Comment 1 Charles Samuels 2003-07-25 18:44:54 UTC
Subject: kdemultimedia/noatun/library

CVS commit by charles: 

don't change the volume on startup twice, fixes #59434.

CCMAIL: 59434-done@bugs.kde.org


  M +4 -3      engine.cpp   1.92


--- kdemultimedia/noatun/library/engine.cpp  #1.91:1.92
@@ -423,5 +423,5 @@ bool Engine::initArts()
         {
                 d->server = Arts::Reference("global:Arts_SoundServerV2");
-                int volume = d->volumeControl ? d->volumeControl->volume() : 100;
+                int volume = d->volumeControl ? d->volumeControl->volume() : -1;
                 delete d->volumeControl;
                 d->volumeControl=0;
@@ -538,4 +538,5 @@ bool Engine::initArts()
                         d->globalEffectStack.insertBottom(d->visStack, "Visualization Stack");
                         d->volumeControl=VolumeControls::volumeControl(this);
+                        if (volume != -1)
                         d->volumeControl->setVolume(volume);
                 }


Comment 2 neerolyte 2004-01-14 23:49:22 UTC
My volume seems to stay at 100% sometimes, I think it only happens when Noatun is loaded from a session restore when I log in.