mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2025-01-18 04:30:48 +00:00
script_karaoke should read back the karoke mode
bump to 0.6
This commit is contained in:
parent
e14ea5f23c
commit
26de3d90b9
@ -79,11 +79,12 @@ class CommandsMixin:
|
|||||||
ui.message("on" if val else "off")
|
ui.message("on" if val else "off")
|
||||||
|
|
||||||
def script_karaoke(self, _):
|
def script_karaoke(self, _):
|
||||||
|
opts = ["off", "k m", "k 1", "k 2", "k v"]
|
||||||
val = self.controller.ctx.get_int("karaoke") + 1
|
val = self.controller.ctx.get_int("karaoke") + 1
|
||||||
if val == 5:
|
if val == len(opts):
|
||||||
val = 0
|
val = 0
|
||||||
self.controller.ctx.set_int("karaoke", val)
|
self.controller.ctx.set_int("karaoke", val)
|
||||||
ui.message(val)
|
ui.message(opts[val])
|
||||||
|
|
||||||
def script_bus_assignment(self, gesture):
|
def script_bus_assignment(self, gesture):
|
||||||
proposed = int(gesture.displayName[-1])
|
proposed = int(gesture.displayName[-1])
|
||||||
|
@ -28,7 +28,7 @@ addon_info = {
|
|||||||
The add-on requires Voicemeeter to be installed."""
|
The add-on requires Voicemeeter to be installed."""
|
||||||
),
|
),
|
||||||
# version
|
# version
|
||||||
"addon_version": "0.5",
|
"addon_version": "0.6",
|
||||||
# Author(s)
|
# Author(s)
|
||||||
"addon_author": "onyx-and-iris <code@onyxandiris.online>",
|
"addon_author": "onyx-and-iris <code@onyxandiris.online>",
|
||||||
# URL for the add-on documentation support
|
# URL for the add-on documentation support
|
||||||
|
Loading…
Reference in New Issue
Block a user