mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +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)
|
var val = o.vm.Midi.Get(current)
|
||||||
fmt.Printf("Value of midi button %d: %d\n", current, val)
|
fmt.Printf("Value of midi button %d: %d\n", current, val)
|
||||||
} else if subject == "ldirty" {
|
} else if subject == "ldirty" {
|
||||||
fmt.Printf("%v %v %v %v %v %v %v %v\n",
|
for _, bus := range o.vm.Bus {
|
||||||
o.vm.Bus[0].Levels().IsDirty(),
|
if bus.Levels().IsDirty() {
|
||||||
o.vm.Bus[1].Levels().IsDirty(),
|
fmt.Println(bus, bus.Levels().All())
|
||||||
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(),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user