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.
- `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

View File

@ -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"}

View File

@ -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: