mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-07 16:03:30 +00:00
add support for all strip level modes to observers
is_updated now returns a bool (if that channel is updated (dirty)) observer example updated. minor ver bump
This commit is contained in:
@@ -6,7 +6,20 @@ class Observer:
|
||||
self.vm = vm
|
||||
|
||||
def on_update(self, subject):
|
||||
print(subject)
|
||||
if subject == "pdirty":
|
||||
print("pdirty!")
|
||||
if subject == "mdirty":
|
||||
print("mdirty!")
|
||||
if subject == "ldirty":
|
||||
info = (
|
||||
"levels changed:",
|
||||
f"[strip 0 {self.vm.strip[0].levels.is_updated}]",
|
||||
f"[strip 1 {self.vm.strip[1].levels.is_updated}]",
|
||||
f"[strip 2 {self.vm.strip[2].levels.is_updated}]",
|
||||
f"[strip 3 {self.vm.strip[3].levels.is_updated}]",
|
||||
f"[strip 4 {self.vm.strip[4].levels.is_updated}]",
|
||||
)
|
||||
print(" ".join(info))
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user