mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-19 07:43:30 +00:00
adds check bounds.
bump pre-release a3
This commit is contained in:
@@ -128,3 +128,12 @@ def get_bus_modes(vm) -> list:
|
||||
"lfeonly",
|
||||
"rearonly",
|
||||
]
|
||||
|
||||
|
||||
def check_bounds(val, bounds):
|
||||
lower, upper = bounds
|
||||
if val > upper:
|
||||
val = upper
|
||||
elif val < lower:
|
||||
val = lower
|
||||
return val
|
||||
|
||||
Reference in New Issue
Block a user