mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-17 14:53:32 +00:00
utility methods that fetch index numbers
This commit is contained in:
13
src/nvda_voicemeeter/util.py
Normal file
13
src/nvda_voicemeeter/util.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
def get_asio_checkbox_index(channel, num):
|
||||||
|
if channel == 0:
|
||||||
|
return 2 * num - 2
|
||||||
|
return 2 * num - 1
|
||||||
|
|
||||||
|
|
||||||
|
def get_insert_checkbox_index(kind, channel, num):
|
||||||
|
if num <= kind.phys_in:
|
||||||
|
if channel == 0:
|
||||||
|
return 2 * num - 2
|
||||||
|
else:
|
||||||
|
return 2 * num - 1
|
||||||
|
return (2 * kind.phys_in) + (8 * (num - kind.phys_in - 1)) + channel
|
||||||
Reference in New Issue
Block a user