Fix: TRAX meter reflection — remove double attenuation from slider+loopback

This commit is contained in:
2026-08-21 08:32:20 -07:00
parent 75ee6978d3
commit e06bfa42a8
4 changed files with 16 additions and 12 deletions
+4 -2
View File
@@ -28,6 +28,8 @@ public sealed class AudioGainProvider
/// <summary>Mic gain for the live mix (0 = muted).</summary>
public double MicGain() => _micMuted() ? 0 : _micVolume();
/// <summary>Loopback (desktop/game) gain for the live mix (0 = muted).</summary>
public double LoopbackGain() => _gameMuted() ? 0 : _gameVolume();
/// <summary>Loopback (desktop/game) gain for the live mix (0 = muted, 1 = unity).
/// Unity because the slider now drives system volume via PushSystemVolume,
/// so the WASAPI loopback signal is already scaled by the user's volume choice.</summary>
public double LoopbackGain() => _gameMuted() ? 0 : 1.0;
}