fix bus.mono type (bool -> int)

patch bump
This commit is contained in:
onyx-and-iris 2026-03-07 21:23:08 +00:00
parent 3d56ba99b6
commit 00ac5b1428
3 changed files with 7 additions and 7 deletions

View File

@ -277,7 +277,7 @@ Level properties will return -200.0 if no audio detected.
The following properties are available. The following properties are available.
- `mono`: boolean - `mono`: int, from 0 up to 2
- `mute`: boolean - `mute`: boolean
- `sel`: boolean - `sel`: boolean
- `gain`: float, from -60.0 to 12.0 - `gain`: float, from -60.0 to 12.0
@ -294,7 +294,7 @@ example:
vm.bus[3].gain = 3.7 vm.bus[3].gain = 3.7
print(vm.bus[0].label) print(vm.bus[0].label)
vm.bus[4].mono = True vm.bus[4].mono = 2
``` ```
##### Bus.EQ ##### Bus.EQ

View File

@ -1,6 +1,6 @@
[project] [project]
name = "voicemeeter-api" name = "voicemeeter-api"
version = "2.7.1" version = "2.7.2"
description = "A Python wrapper for the Voiceemeter API" description = "A Python wrapper for the Voiceemeter API"
authors = [ authors = [
{name = "Onyx and Iris",email = "code@onyxandiris.online"} {name = "Onyx and Iris",email = "code@onyxandiris.online"}

View File

@ -39,12 +39,12 @@ class Bus(IRemote):
self.setter('mute', 1 if val else 0) self.setter('mute', 1 if val else 0)
@property @property
def mono(self) -> bool: def mono(self) -> int:
return self.getter('mono') == 1 return int(self.getter('mono'))
@mono.setter @mono.setter
def mono(self, val: bool): def mono(self, val: int):
self.setter('mono', 1 if val else 0) self.setter('mono', val)
@property @property
def sel(self) -> bool: def sel(self) -> bool: