move vm_path and dll loading into cdll.py

define binds explicitly in Binds.

bump to version 0.3
This commit is contained in:
2023-09-24 17:25:43 +01:00
parent 1b2608801f
commit f24ef8442e
5 changed files with 100 additions and 52 deletions

View File

@@ -1,2 +1,11 @@
class VMError(Exception):
"""Base VMError class"""
"""Base voicemeeterlib exception class."""
class VMCAPIError(VMError):
"""Exception raised when the C-API returns an error code"""
def __init__(self, fn_name, code):
self.fn_name = fn_name
self.code = code
super().__init__(f"{self.fn_name} returned {self.code}")