diff --git a/README.md b/README.md index a94f8cc..42c7e20 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ Level properties will return -200.0 if no audio detected. The following properties are available. -- `mono`: boolean +- `mono`: int, from 0 up to 2 - `mute`: boolean - `sel`: boolean - `gain`: float, from -60.0 to 12.0 @@ -294,7 +294,7 @@ example: vm.bus[3].gain = 3.7 print(vm.bus[0].label) -vm.bus[4].mono = True +vm.bus[4].mono = 2 ``` ##### Bus.EQ diff --git a/pyproject.toml b/pyproject.toml index 4f39e07..12663da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "voicemeeter-api" -version = "2.7.1" +version = "2.7.2" description = "A Python wrapper for the Voiceemeter API" authors = [ {name = "Onyx and Iris",email = "code@onyxandiris.online"} diff --git a/voicemeeterlib/bus.py b/voicemeeterlib/bus.py index 0da0004..7c304d5 100644 --- a/voicemeeterlib/bus.py +++ b/voicemeeterlib/bus.py @@ -39,12 +39,12 @@ class Bus(IRemote): self.setter('mute', 1 if val else 0) @property - def mono(self) -> bool: - return self.getter('mono') == 1 + def mono(self) -> int: + return int(self.getter('mono')) @mono.setter - def mono(self, val: bool): - self.setter('mono', 1 if val else 0) + def mono(self, val: int): + self.setter('mono', val) @property def sel(self) -> bool: