mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
[MMIXER] HACK: Decrease SteppingDelta for each volume value by 1
This workarounds broken changing volume level for left and right volume controls separately ("Speakers Volume" button in "Sound" tab of mmsys.cpl). CORE-19190
This commit is contained in:
parent
376708b586
commit
206b52833f
1 changed files with 4 additions and 3 deletions
|
@ -218,10 +218,11 @@ MMixerAddMixerControl(
|
||||||
}
|
}
|
||||||
|
|
||||||
Value = Range->Bounds.SignedMinimum;
|
Value = Range->Bounds.SignedMinimum;
|
||||||
for(Index = 0; Index < Steps; Index++)
|
for (Index = 0; Index < Steps; Index++)
|
||||||
{
|
{
|
||||||
VolumeData->Values[Index] = Value;
|
VolumeData->Values[Index] = Value;
|
||||||
Value += Range->SteppingDelta;
|
// HACK: use '- 1' to make the left and right volume controls behave independently.
|
||||||
|
Value += Range->SteppingDelta - 1;
|
||||||
}
|
}
|
||||||
MixerControl->ExtraData = VolumeData;
|
MixerControl->ExtraData = VolumeData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue