mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-22 11:00:47 +00:00
BUSEQ class added to Bus class
This commit is contained in:
parent
e6ea1e5f4f
commit
9f27968c5c
@ -46,22 +46,6 @@ class Bus(IRemote):
|
|||||||
def mono(self, val: bool):
|
def mono(self, val: bool):
|
||||||
self.setter("mono", 1 if val else 0)
|
self.setter("mono", 1 if val else 0)
|
||||||
|
|
||||||
@property
|
|
||||||
def eq(self) -> bool:
|
|
||||||
return self.getter("eq.On") == 1
|
|
||||||
|
|
||||||
@eq.setter
|
|
||||||
def eq(self, val: bool):
|
|
||||||
self.setter("eq.On", 1 if val else 0)
|
|
||||||
|
|
||||||
@property
|
|
||||||
def eq_ab(self) -> bool:
|
|
||||||
return self.getter("eq.ab") == 1
|
|
||||||
|
|
||||||
@eq_ab.setter
|
|
||||||
def eq_ab(self, val: bool):
|
|
||||||
self.setter("eq.ab", 1 if val else 0)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def sel(self) -> bool:
|
def sel(self) -> bool:
|
||||||
return self.getter("sel") == 1
|
return self.getter("sel") == 1
|
||||||
@ -103,6 +87,28 @@ class Bus(IRemote):
|
|||||||
time.sleep(self._remote.DELAY)
|
time.sleep(self._remote.DELAY)
|
||||||
|
|
||||||
|
|
||||||
|
class BusEQ(IRemote):
|
||||||
|
@property
|
||||||
|
def identifier(self) -> str:
|
||||||
|
return f"Bus[{self.index}].eq"
|
||||||
|
|
||||||
|
@property
|
||||||
|
def on(self) -> bool:
|
||||||
|
return self.getter("on") == 1
|
||||||
|
|
||||||
|
@on.setter
|
||||||
|
def on(self, val: bool):
|
||||||
|
self.setter("on", 1 if val else 0)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def ab(self) -> bool:
|
||||||
|
return self.getter("ab") == 1
|
||||||
|
|
||||||
|
@ab.setter
|
||||||
|
def ab(self, val: bool):
|
||||||
|
self.setter("ab", 1 if val else 0)
|
||||||
|
|
||||||
|
|
||||||
class PhysicalBus(Bus):
|
class PhysicalBus(Bus):
|
||||||
@classmethod
|
@classmethod
|
||||||
def make(cls, remote, i, kind):
|
def make(cls, remote, i, kind):
|
||||||
@ -309,6 +315,7 @@ def bus_factory(is_phys_bus, remote, i) -> Union[PhysicalBus, VirtualBus]:
|
|||||||
{
|
{
|
||||||
"levels": BusLevel(remote, i),
|
"levels": BusLevel(remote, i),
|
||||||
"mode": BUSMODEMIXIN_cls(remote, i),
|
"mode": BUSMODEMIXIN_cls(remote, i),
|
||||||
|
"eq": BusEQ(remote, i),
|
||||||
},
|
},
|
||||||
)(remote, i)
|
)(remote, i)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user