mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Changed headphone volume curve to more closely resemble control outside of program
Related to issue #168.
This commit is contained in:
parent
cfbf7afe22
commit
b9bc51e873
@ -32,7 +32,7 @@ namespace DS4Windows.DS4Library
|
||||
|
||||
if (endpointVolume != null)
|
||||
endpointVolume.GetMasterVolumeLevelScalar(out pfLevel);
|
||||
vol = Convert.ToUInt32(pfLevel * 100);
|
||||
vol = Convert.ToUInt32(pfLevel > 0 ? (75 - 20) * (--pfLevel * pfLevel * pfLevel + 1) + 20 : 0);
|
||||
}
|
||||
|
||||
public void OnNotify(IntPtr pNotify)
|
||||
|
Loading…
Reference in New Issue
Block a user