return err from NewRemote\

pass Kind.Name to logout

update examples/tests to reflect changes
This commit is contained in:
onyx-and-iris
2022-08-23 03:16:43 +01:00
parent 3fd08ff606
commit 6fabc43998
6 changed files with 33 additions and 17 deletions

View File

@@ -54,14 +54,14 @@ func login(kindId string) {
fmt.Println(err)
os.Exit(1)
}
fmt.Println("Logged into API")
fmt.Printf("Logged into Voicemeeter %s\n", kindId)
for pdirty() || mdirty() {
}
}
// logout logs out of the API,
// delayed for 100ms to allow final operation to complete.
func logout() {
func logout(kindId string) {
time.Sleep(100 * time.Millisecond)
res, _, _ := vmLogout.Call()
if res != 0 {
@@ -69,7 +69,7 @@ func logout() {
fmt.Println(err)
os.Exit(1)
}
fmt.Println("Logged out of API")
fmt.Printf("Logged out of Voicemeeter %s\n", kindId)
}
// runVoicemeeter attempts to launch a Voicemeeter GUI of a kind.