-
Notifications
You must be signed in to change notification settings - Fork 2
/
command.go
42 lines (35 loc) · 838 Bytes
/
command.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package voicemeeter
// command represents command (action) type parameters
type command struct {
iRemote
}
// newCommand returns a pointer to a command type
func newCommand() *command {
return &command{iRemote{"command", 0}}
}
// Show shows the Voicemeete GUI if it's hidden
func (c *command) Show() {
c.setter_float("Show", 1)
}
// Hide hides the Voicemeete GUI if it's shown
func (c *command) Hide() {
c.setter_float("Show", 0)
}
// Shutdown shutdown the Voicemeeter GUI
func (c *command) Shutdown() {
c.setter_float("Shutdown", 1)
}
// Restart restarts the Voicemeeter audio engine
func (c *command) Restart() {
c.setter_float("Restart", 1)
}
// Lock locks or unlocks the Voiceemeter GUI
func (c *command) Lock(val bool) {
var value float64
if val {
value = 1
} else {
value = 0
}
c.setter_float("Lock", value)
}