From bf77ded0074a0761ead94e1c15b59f34566a05ef Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 21 Jul 2023 12:56:12 +0100 Subject: [PATCH] fix bind name for get_num_devices. patch bump --- pyproject.toml | 2 +- voicemeeterlib/remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e5b170a..988082c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "voicemeeter-api" -version = "2.3.5" +version = "2.3.6" description = "A Python wrapper for the Voiceemeter API" authors = ["onyx-and-iris "] license = "MIT" diff --git a/voicemeeterlib/remote.py b/voicemeeterlib/remote.py index 15425f5..a9379ed 100644 --- a/voicemeeterlib/remote.py +++ b/voicemeeterlib/remote.py @@ -216,7 +216,7 @@ class Remote(CBindings): """Retrieves number of physical devices connected""" if direction not in ("in", "out"): raise VMError("Expected a direction: in or out") - func = getattr(self, f"vm_get_num_{direction}devices") + func = getattr(self, f"bind_{direction}put_get_device_number") res = self.call(func, ok_exp=lambda r: r >= 0) return res