Skip to content

Commit

Permalink
[AC97] Use individual Decibel range for Master Volume control
Browse files Browse the repository at this point in the history
Add ReactOS change to use the same Decibel (dB) sound loudness range for Master Volume control as for WaveOut Volume Control.
This fixes incompatible volume level change scaling when changing the volume in Fox Audio Player 0.10.2 from Rapps and Winamp 2.95 with WaveOut output plugin.
Now it is identical to the one when using original AC97 driver from Windows XP/Server 2003.
CORE-14780
  • Loading branch information
oleg-dubinskiy committed May 26, 2024
1 parent 4988de4 commit b511eee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/wdm/audio/drivers/ac97/prophnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ NTSTATUS CAC97MiniportTopology::GetDBValues
// These nodes could have 5bit or 6bit controls, so we first
// have to check this.
case NODE_MASTEROUT_VOLUME:
// ReactOS change: use the same Decibel range as for WaveOut,
// to fix incorrect volume level change scaling.
*plMaximum = 0x000C0000; // 12 dB
*plMinimum = 0xFFDD8000; // -34.5 dB
*puStep = 0x00018000; // 1.5 dB
break;

case NODE_FRONT_VOLUME:
case NODE_HPOUT_VOLUME:
case NODE_SURROUND_VOLUME:
Expand Down

0 comments on commit b511eee

Please sign in to comment.