Bug 138626 - master channel config value ignored
Summary: master channel config value ignored
Status: RESOLVED WORKSFORME
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
: 142409 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-10 14:36 UTC by Daniel Reichhard
Modified: 2007-03-02 15:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
fixes problem with loading right config for more than one sound card (1.80 KB, patch)
2006-12-10 17:57 UTC, Daniel Reichhard
Details
fixes problem with loading right config for more than one sound card (1.45 KB, patch)
2006-12-10 22:33 UTC, Daniel Reichhard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Reichhard 2006-12-10 14:36:54 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

i have two sound cards, and whenever i set the master channel to the second one, the value is stored to kmixrc correctly, but kmix doesn't honor the settings on the next start. the master channel is always set to the default (first) sound card it can find.
Comment 1 Daniel Reichhard 2006-12-10 17:57:03 UTC
Created attachment 18877 [details]
fixes problem with loading right config for more than one sound card

this works for me; the problem was that setMasterCard() tried to use the
"mixer" list before it has been entirely filled
Comment 2 Christian Esken 2006-12-10 21:41:53 UTC
Already fixed. Please see https://bugs.kde.org/show_bug.cgi?id=136378#c33 . The patch I did is pretty much identical, but instead of using the defaultPrimaryKey thing, I am just using the first mixer via Mixer::mixers().first()->id() . 
Comment 3 Daniel Reichhard 2006-12-10 22:33:12 UTC
Created attachment 18884 [details]
fixes problem with loading right config for more than one sound card

the patch from https://bugs.kde.org/show_bug.cgi?id=136378#c33 doesn't solve my
problem, because it still calls setMasterCard before the mixer structure is
filled completely. setMasterCard has to be called after the loop over the sound
cards, i believe.

this patch now uses Mixer::mixers().first()->id() in setMasterCard, similar to
the patch mentioned above
Comment 4 Daniel Reichhard 2006-12-10 22:34:40 UTC
reopening - reason is in #3
Comment 5 Christian Esken 2006-12-11 21:03:09 UTC
Hi, why do you claim that "it still calls setMasterCard before the mixer structure is filled completely". It is not. Have you read and understood the patch?!?
Comment 6 Daniel Reichhard 2006-12-12 02:45:27 UTC
Sorry for any inconvenience, i was a bit to hasty...
of course it works.

regards, daniel
Comment 7 Christian Esken 2007-03-02 15:51:06 UTC
*** Bug 142409 has been marked as a duplicate of this bug. ***