From 76e6d3cba7056564cb683d57bcd32b5d26fd9188 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Mon, 18 Jul 2022 16:23:15 +0100 Subject: [PATCH] Remote Kind field now exported. Kind fields/methods now exported vmRem renamed vm in examples/tests. prefer short variable name. minor version bump --- README.md | 98 ++++++++++++++-------------- base.go | 10 +-- examples/observer/observer.go | 12 ++-- kinds.go | 14 ++-- levels.go | 8 +-- publisher.go | 4 +- remote.go | 24 +++---- strip.go | 4 +- tests/helper_test.go | 8 +-- tests/higher_test.go | 118 +++++++++++++++++----------------- vban.go | 8 +-- 11 files changed, 154 insertions(+), 154 deletions(-) diff --git a/README.md b/README.md index 87c53ce..e39093b 100644 --- a/README.md +++ b/README.md @@ -48,15 +48,15 @@ import ( func main() { kindId := "banana" - vmRem := voicemeeter.NewRemote(kindId) + vm := voicemeeter.NewRemote(kindId) - vmRem.Login() + vm.Login() - vmRem.Strip[0].SetLabel("rode podmic") - vmRem.Strip[0].SetMute(true) - fmt.Printf("Strip 0 (%s) mute was set to %v\n", vmRem.Strip[0].GetLabel(), vmRem.Strip[0].GetMute()) + vm.Strip[0].SetLabel("rode podmic") + vm.Strip[0].SetMute(true) + fmt.Printf("Strip 0 (%s) mute was set to %v\n", vm.Strip[0].GetLabel(), vm.Strip[0].GetMute()) - vmRem.Logout() + vm.Logout() } ``` @@ -70,59 +70,59 @@ Pass the kind of Voicemeeter as an argument. kindId may be: ## `Remote Type` -#### `vmRem.Strip` +#### `vm.Strip` []t_strip slice containing both physicalStrip and virtualStrip types -#### `vmRem.Bus` +#### `vm.Bus` []t_bus slice containing both physicalBus and virtualBus types -#### `vmRem.Button` +#### `vm.Button` []button slice containing button types, one for each macrobutton -#### `vmRem.Command` +#### `vm.Command` pointer to command type, represents action type functions -#### `vmRem.Vban` +#### `vm.Vban` pointer to vban type, containing both vbanInStream and vbanOutStream slices -#### `vmRem.Device` +#### `vm.Device` pointer to device type, represents physical input/output hardware devices -#### `vmRem.Recorder` +#### `vm.Recorder` pointer to recorder type, represents the recorder -#### `vmRem.Type()` +#### `vm.Type()` returns the type of Voicemeeter as a string -#### `vmRem.Version()` +#### `vm.Version()` returns the version of Voicemeeter as a string -#### `vmRem.SendText(