mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-22 19:10:47 +00:00
fix error in cbindings.
fix error in cbindings.
This commit is contained in:
parent
9cb5093cc9
commit
43de864a83
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "voicemeeter-api"
|
name = "voicemeeter-api"
|
||||||
version = "0.1.6"
|
version = "0.1.7"
|
||||||
description = "A Python wrapper for the Voiceemeter API"
|
description = "A Python wrapper for the Voiceemeter API"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -233,8 +233,8 @@ class Remote(CBindings):
|
|||||||
"""Sets many parameters from a script"""
|
"""Sets many parameters from a script"""
|
||||||
if len(script) > 48000:
|
if len(script) > 48000:
|
||||||
raise ValueError("Script too large, max size 48kB")
|
raise ValueError("Script too large, max size 48kB")
|
||||||
self.call(partial(self.vm_set_parameter_multi, script))
|
self.call(partial(self.vm_set_parameter_multi, script.encode()))
|
||||||
time.sleep(self.DELAY)
|
time.sleep(self.DELAY * 5)
|
||||||
|
|
||||||
def apply(self, data: dict):
|
def apply(self, data: dict):
|
||||||
"""
|
"""
|
||||||
|
@ -67,7 +67,7 @@ class CBindings(metaclass=ABCMeta):
|
|||||||
|
|
||||||
vm_set_parameter_multi = libc.VBVMR_SetParameters
|
vm_set_parameter_multi = libc.VBVMR_SetParameters
|
||||||
vm_set_parameter_multi.restype = LONG
|
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 = libc.VBVMR_GetLevel
|
||||||
vm_get_level.restype = LONG
|
vm_get_level.restype = LONG
|
||||||
|
Loading…
Reference in New Issue
Block a user