package module moved into root of repository.

example in readme updated.

level pooler implemented, runs in its own goroutine.

Remote type now exported

observers example updated.
This commit is contained in:
onyx-and-iris
2022-07-09 19:01:58 +01:00
parent f16bed893f
commit 70d69f5599
32 changed files with 179 additions and 75 deletions

41
command.go Normal file
View File

@@ -0,0 +1,41 @@
package voicemeeter
type command struct {
iRemote
}
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
// it accepts a boolean value
func (c *command) Lock(val bool) {
var value float32
if val {
value = 1
} else {
value = 0
}
c.setter_float("Lock", value)
}