mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-03-08 02:59:10 +00:00
fix bus.mono type (bool -> int)
patch bump
This commit is contained in:
parent
3d56ba99b6
commit
00ac5b1428
@ -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
|
||||||
|
|||||||
@ -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"}
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user