Changed headphone volume curve to more closely resemble control outside of program

Related to issue #168.
This commit is contained in:
Travis Nickles 2018-01-15 00:06:28 -06:00
parent cfbf7afe22
commit b9bc51e873

View File

@ -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)