mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Minor tweak
This commit is contained in:
parent
b9bc51e873
commit
be10ab29b2
@ -32,7 +32,7 @@ namespace DS4Windows.DS4Library
|
|||||||
|
|
||||||
if (endpointVolume != null)
|
if (endpointVolume != null)
|
||||||
endpointVolume.GetMasterVolumeLevelScalar(out pfLevel);
|
endpointVolume.GetMasterVolumeLevelScalar(out pfLevel);
|
||||||
vol = Convert.ToUInt32(pfLevel > 0 ? (75 - 20) * (--pfLevel * pfLevel * pfLevel + 1) + 20 : 0);
|
vol = Convert.ToUInt32((75 - 20) * (--pfLevel * pfLevel * pfLevel + 1) + 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnNotify(IntPtr pNotify)
|
public void OnNotify(IntPtr pNotify)
|
||||||
|
Loading…
Reference in New Issue
Block a user