Update Voicemeeter.psm1

lower level setters/getters and polling functions now exposed
This commit is contained in:
onyx-and-iris 2022-01-19 21:55:10 +00:00
parent 9714b7cc7d
commit 9162933ee8

View File

@ -1,29 +1,29 @@
. $PSScriptRoot\base.ps1
class Remote {
[String]$type
[System.Collections.ArrayList]$button
[String]$kind
[System.Collections.ArrayList]$strip
[System.Collections.ArrayList]$bus
[System.Collections.ArrayList]$button
[PSCustomObject]$vban
$command
# Constructor
Remote ([String]$type)
Remote ([String]$kind)
{
$this.type = $type
$this.kind = $kind
$this.Setup()
}
[void] Setup() {
if(Setup_DLL) {
Login -TYPE $this.type
Login -KIND $this.kind
$this.button = Buttons
$this.strip = Strips
$this.bus = Buses
$this.vban = Vban
$this.command = Special
$this.strip = Make_Strips
$this.bus = Make_Buses
$this.button = Make_Buttons
$this.vban = Make_Vban
$this.command = Make_Command
}
else { Exit }
}
@ -32,9 +32,25 @@ class Remote {
Logout
}
[Single] Getter([String]$param) {
return Param_Get -PARAM $param
}
[String] Getter_String([String]$param) {
return Param_Get -PARAM $param -IS_STRING $true
}
[void] Setter([String]$param, [Object]$value) {
Param_Set -PARAM $param -VALUE $value
}
[void] Set_Multi([HashTable]$hash) {
Param_Set_Multi -HASH $hash
}
[void] PDirty() { P_Dirty }
[void] MDirty() { M_Dirty }
}
Function Get-RemoteBasic {