Skip to content

Commit

Permalink
fixed eq layer normalization being stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotr7 committed Jun 3, 2020
1 parent 1502619 commit dda459f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public override EffectLayer Render(IGameState gamestate)
DeviceProxy.DeviceId = Properties.DeviceId;

// The system sound as a value between 0.0 and 1.0
float system_sound_normalized = DeviceProxy.Device?.AudioEndpointVolume.MasterVolumeLevelScalar ?? 1f;
float system_sound_normalized = DeviceProxy.Device?.AudioMeterInformation?.MasterPeakValue ?? 1f;

// Scale the Maximum amplitude with the system sound if enabled, so that at 100% volume the max_amp is unchanged.
// Replaces all Properties.MaxAmplitude calls with the scaled value
Expand Down

0 comments on commit dda459f

Please sign in to comment.