mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
add strip gain
remove redundant timeout variable from VBAN_VMRT_Packet_Header add strip gain property
This commit is contained in:
parent
d21903e34a
commit
b836fa8642
@ -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')
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user