add strip gain

remove redundant timeout variable from  VBAN_VMRT_Packet_Header

add strip gain property
This commit is contained in:
onyx-and-iris 2022-03-02 12:32:37 +00:00
parent d21903e34a
commit b836fa8642
2 changed files with 8 additions and 1 deletions

View File

@ -107,7 +107,6 @@ class VBAN_VMRT_Packet_Data:
class VBAN_VMRT_Packet_Header: class VBAN_VMRT_Packet_Header:
""" RT PACKET header (expected from Voicemeeter server) """ """ RT PACKET header (expected from Voicemeeter server) """
name='Voicemeeter-RTP' name='Voicemeeter-RTP'
timeout=15
vban: bytes='VBAN'.encode() vban: bytes='VBAN'.encode()
format_sr: bytes=(0x60).to_bytes(1, 'little') format_sr: bytes=(0x60).to_bytes(1, 'little')
format_nbs: bytes=(0).to_bytes(1, 'little') format_nbs: bytes=(0).to_bytes(1, 'little')

View File

@ -74,6 +74,14 @@ class InputStrip(Channel):
raise VMCMDErrors('label is a string parameter') raise VMCMDErrors('label is a string parameter')
self.setter('label', val) self.setter('label', val)
@property
def gain(self) -> float:
return self.gainlayer[0].gain
@gain.setter
def gain(self, val: float):
self.gainlayer[0].gain = val
class PhysicalInputStrip(InputStrip): class PhysicalInputStrip(InputStrip):
@property @property