mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-15 16:40:46 +00:00
adds device to VirtualBus class explicitly
if basic kind. patch bump
This commit is contained in:
parent
ab23280e70
commit
b4306d9af5
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "voicemeeter-api"
|
name = "voicemeeter-api"
|
||||||
version = "2.4.8"
|
version = "2.4.9"
|
||||||
description = "A Python wrapper for the Voiceemeter API"
|
description = "A Python wrapper for the Voiceemeter API"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -173,7 +173,7 @@ class BusDevice(IRemote):
|
|||||||
|
|
||||||
class VirtualBus(Bus):
|
class VirtualBus(Bus):
|
||||||
@classmethod
|
@classmethod
|
||||||
def make(cls, kind):
|
def make(cls, remote, i, kind):
|
||||||
"""
|
"""
|
||||||
Factory method for VirtualBus.
|
Factory method for VirtualBus.
|
||||||
|
|
||||||
@ -183,7 +183,13 @@ class VirtualBus(Bus):
|
|||||||
"""
|
"""
|
||||||
kls = (cls,)
|
kls = (cls,)
|
||||||
if kind.name == "basic":
|
if kind.name == "basic":
|
||||||
kls += (PhysicalBus,)
|
return type(
|
||||||
|
"VirtualBus",
|
||||||
|
kls,
|
||||||
|
{
|
||||||
|
"device": BusDevice.make(remote, i),
|
||||||
|
},
|
||||||
|
)
|
||||||
elif kind.name == "potato":
|
elif kind.name == "potato":
|
||||||
EFFECTS_cls = _make_effects_mixin()
|
EFFECTS_cls = _make_effects_mixin()
|
||||||
kls += (EFFECTS_cls,)
|
kls += (EFFECTS_cls,)
|
||||||
@ -306,7 +312,7 @@ def bus_factory(is_phys_bus, remote, i) -> Union[PhysicalBus, VirtualBus]:
|
|||||||
BUS_cls = (
|
BUS_cls = (
|
||||||
PhysicalBus.make(remote, i, remote.kind)
|
PhysicalBus.make(remote, i, remote.kind)
|
||||||
if is_phys_bus
|
if is_phys_bus
|
||||||
else VirtualBus.make(remote.kind)
|
else VirtualBus.make(remote, i, remote.kind)
|
||||||
)
|
)
|
||||||
BUSMODEMIXIN_cls = _make_bus_mode_mixin()
|
BUSMODEMIXIN_cls = _make_bus_mode_mixin()
|
||||||
return type(
|
return type(
|
||||||
|
Loading…
Reference in New Issue
Block a user