mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-07 00:13:30 +00:00
Remote Kind field now exported.
Kind fields/methods now exported vmRem renamed vm in examples/tests. prefer short variable name. minor version bump
This commit is contained in:
@@ -34,13 +34,13 @@ func (o observer) OnUpdate(subject string) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
vmRem := voicemeeter.NewRemote("potato")
|
||||
vmRem.Login()
|
||||
vm := voicemeeter.NewRemote("potato")
|
||||
vm.Login()
|
||||
|
||||
o := observer{vmRem}
|
||||
vmRem.Register(o)
|
||||
o := observer{vm}
|
||||
vm.Register(o)
|
||||
time.Sleep(30 * time.Second)
|
||||
vmRem.Deregister(o)
|
||||
vm.Deregister(o)
|
||||
|
||||
vmRem.Logout()
|
||||
vm.Logout()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user