mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-21 20:30:55 +00:00
print bus level values in observer example
This commit is contained in:
parent
7022c5dacf
commit
5b3f10c4b8
@ -42,16 +42,11 @@ func (o observer) OnUpdate(subject string) {
|
||||
var val = o.vm.Midi.Get(current)
|
||||
fmt.Printf("Value of midi button %d: %d\n", current, val)
|
||||
} else if subject == "ldirty" {
|
||||
fmt.Printf("%v %v %v %v %v %v %v %v\n",
|
||||
o.vm.Bus[0].Levels().IsDirty(),
|
||||
o.vm.Bus[1].Levels().IsDirty(),
|
||||
o.vm.Bus[2].Levels().IsDirty(),
|
||||
o.vm.Bus[3].Levels().IsDirty(),
|
||||
o.vm.Bus[4].Levels().IsDirty(),
|
||||
o.vm.Bus[5].Levels().IsDirty(),
|
||||
o.vm.Bus[6].Levels().IsDirty(),
|
||||
o.vm.Bus[7].Levels().IsDirty(),
|
||||
)
|
||||
for _, bus := range o.vm.Bus {
|
||||
if bus.Levels().IsDirty() {
|
||||
fmt.Println(bus, bus.Levels().All())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user