RunVoicemeeter, RunApplication

This commit is contained in:
pblivingston
2026-08-06 19:40:54 -04:00
parent 5c5932e7d3
commit b978f5aa3f

View File

@@ -40,6 +40,15 @@ class Remote {
Logout
}
[Remote] RunVoicemeeter([String]$kindId) {
RunVm -kindId $kindId
return Make_Remote -kindId $kindId
}
[void] RunApplication([String]$appId) {
RunApp -appId $appId
}
[string] GetType() {
return VmType
}
@@ -159,6 +168,26 @@ class RemotePotato : Remote {
}
}
function Make_Remote {
param(
[String]$kindId
)
switch ($kindId) {
'basic' {
[RemoteBasic]::new()
}
'banana' {
[RemoteBanana]::new()
}
'potato' {
[RemotePotato]::new()
}
default {
throw [VMRemoteError]::new("Unknown Voicemeeter kind `"$kindId`"")
}
}
}
Function Get-RemoteBasic {
[RemoteBasic]::new().Login()
}