File tree Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -75,22 +75,20 @@ type pooler struct {
75
75
}
76
76
77
77
func newPooler (k * kind ) * pooler {
78
- if p == nil {
79
- p = & pooler {
80
- k : k ,
81
- run : true ,
82
- event : newEvent (),
83
- pdirtyDone : make (chan bool ),
84
- mdirtyDone : make (chan bool ),
85
- midiDone : make (chan bool ),
86
- ldirtyDone : make (chan bool ),
87
- }
88
- go p .done ()
89
- go p .parameters ()
90
- go p .macrobuttons ()
91
- go p .midi ()
92
- go p .levels ()
78
+ p = & pooler {
79
+ k : k ,
80
+ run : true ,
81
+ event : newEvent (),
82
+ pdirtyDone : make (chan bool ),
83
+ mdirtyDone : make (chan bool ),
84
+ midiDone : make (chan bool ),
85
+ ldirtyDone : make (chan bool ),
93
86
}
87
+ go p .done ()
88
+ go p .parameters ()
89
+ go p .macrobuttons ()
90
+ go p .midi ()
91
+ go p .levels ()
94
92
return p
95
93
}
96
94
Original file line number Diff line number Diff line change @@ -55,6 +55,17 @@ func (r *Remote) InitPooler() {
55
55
r .pooler = newPooler (r .Kind )
56
56
}
57
57
58
+ // Run launches the Voicemeeter GUI for a kind.
59
+ func (r * Remote ) Run (kindId string ) error {
60
+ err := runVoicemeeter (kindId )
61
+ if err != nil {
62
+ return err
63
+ }
64
+ time .Sleep (time .Second )
65
+ clear ()
66
+ return nil
67
+ }
68
+
58
69
// Type returns the type of Voicemeeter (basic, banana, potato)
59
70
func (r * Remote ) Type () string {
60
71
val , err := getVMType ()
You can’t perform that action at this time.
0 commit comments