mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2026-04-18 09:03:30 +00:00
add pyproject.toml
This commit is contained in:
@@ -35,7 +35,7 @@ def get_vmpath():
|
||||
try:
|
||||
vm_parent = Path(get_vmpath()).parent
|
||||
except FileNotFoundError as e:
|
||||
raise VMError(f"Unable to fetch DLL path from the registry") from e
|
||||
raise VMError("Unable to fetch DLL path from the registry") from e
|
||||
|
||||
DLL_NAME = f'VoicemeeterRemote{"64" if BITS == 64 else ""}.dll'
|
||||
|
||||
|
||||
@@ -8,12 +8,8 @@ class Strategy(ABC):
|
||||
self._slider_mode = "gain"
|
||||
|
||||
@abstractmethod
|
||||
def __str__(self):
|
||||
pass
|
||||
|
||||
@property
|
||||
def identifier(self):
|
||||
return f"{self}[{self._index}]"
|
||||
pass
|
||||
|
||||
@property
|
||||
def index(self):
|
||||
@@ -54,11 +50,19 @@ class StripStrategy(Strategy):
|
||||
def __str__(self):
|
||||
return "Strip"
|
||||
|
||||
@property
|
||||
def identifier(self):
|
||||
return f"{self}[{self._index}]"
|
||||
|
||||
|
||||
class BusStrategy(Strategy):
|
||||
def __str__(self):
|
||||
return "Bus"
|
||||
|
||||
@property
|
||||
def identifier(self):
|
||||
return f"{self}[{self._index}]"
|
||||
|
||||
|
||||
class Context:
|
||||
def __init__(self, strategy: Strategy) -> None:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class VMError(Exception):
|
||||
"""Base voicemeeterlib exception class."""
|
||||
"""Base voicemeeterlib exception class"""
|
||||
|
||||
|
||||
class VMCAPIError(VMError):
|
||||
|
||||
Reference in New Issue
Block a user