From b836fa86429a6a8b815c00073ccd9362c35e8df4 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 2 Mar 2022 12:32:37 +0000 Subject: [PATCH] add strip gain remove redundant timeout variable from VBAN_VMRT_Packet_Header add strip gain property --- vban_cmd/dataclass.py | 1 - vban_cmd/strip.py | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/vban_cmd/dataclass.py b/vban_cmd/dataclass.py index c11edfe..af126c6 100644 --- a/vban_cmd/dataclass.py +++ b/vban_cmd/dataclass.py @@ -107,7 +107,6 @@ class VBAN_VMRT_Packet_Data: class VBAN_VMRT_Packet_Header: """ RT PACKET header (expected from Voicemeeter server) """ name='Voicemeeter-RTP' - timeout=15 vban: bytes='VBAN'.encode() format_sr: bytes=(0x60).to_bytes(1, 'little') format_nbs: bytes=(0).to_bytes(1, 'little') diff --git a/vban_cmd/strip.py b/vban_cmd/strip.py index 860992d..5072344 100644 --- a/vban_cmd/strip.py +++ b/vban_cmd/strip.py @@ -74,6 +74,14 @@ class InputStrip(Channel): raise VMCMDErrors('label is a string parameter') 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): @property