mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-06 23:43:30 +00:00
fix error in cbindings.
fix error in cbindings.
This commit is contained in:
@@ -233,8 +233,8 @@ class Remote(CBindings):
|
||||
"""Sets many parameters from a script"""
|
||||
if len(script) > 48000:
|
||||
raise ValueError("Script too large, max size 48kB")
|
||||
self.call(partial(self.vm_set_parameter_multi, script))
|
||||
time.sleep(self.DELAY)
|
||||
self.call(partial(self.vm_set_parameter_multi, script.encode()))
|
||||
time.sleep(self.DELAY * 5)
|
||||
|
||||
def apply(self, data: dict):
|
||||
"""
|
||||
|
||||
@@ -67,7 +67,7 @@ class CBindings(metaclass=ABCMeta):
|
||||
|
||||
vm_set_parameter_multi = libc.VBVMR_SetParameters
|
||||
vm_set_parameter_multi.restype = LONG
|
||||
vm_set_parameter_multi.argtypes = [ct.POINTER(CHAR), ct.POINTER(CHAR)]
|
||||
vm_set_parameter_multi.argtypes = [ct.POINTER(CHAR)]
|
||||
|
||||
vm_get_level = libc.VBVMR_GetLevel
|
||||
vm_get_level.restype = LONG
|
||||
|
||||
Reference in New Issue
Block a user