[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#24070: kmix applet does not remember selection with multiple mixers
From:       steffenp () gmx ! de
Date:       2001-04-12 18:08:39
[Download RAW message or body]

Package: kmix
Version: KDE 2.1.9 CVS/CVSup/Snapshot
Severity: normal
Installed from:    Compiled sources
Compiler:          gcc version 2.95.3 20010315 (Debian release)
OS:                Linux
OS/Compiler notes: Debian (unstable)

I have 2 sound mixers in my system. One from the TV card and the other one from the \
sound card. When I select the 2. mixer and restart kde I am prompted again "Select \
mixer".

I suggest applying the following patch to kmixapplet.cpp:
--
@@ -140,12 +140,9 @@
    Mixer *mixer = 0;
    if ( mixerNum>=0 )
    {
-      int m = mixerNum+1;
       for (mixer=s_mixers->first(); mixer!=0; mixer=s_mixers->next())
-      {
-         if ( mixer->mixerName()==mixerName ) m--;
-         if ( m==0 ) break;
-      }
+        if ( mixer->mixerName()==mixerName )
+          break;
    }
 
    // don't prompt for a mixer if there is just one available
--
It don't quite understand the original code so the patch might break things.


(Submitted via bugs.kde.org)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic