mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 10:00:46 +00:00
utility methods that fetch index numbers
This commit is contained in:
parent
9621232a17
commit
990aea2b42
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
|
Loading…
Reference in New Issue
Block a user