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 . $PSScriptRoot\base.ps1
class Remote { class Remote {
[String]$type [String]$kind
[System.Collections.ArrayList]$button
[System.Collections.ArrayList]$strip [System.Collections.ArrayList]$strip
[System.Collections.ArrayList]$bus [System.Collections.ArrayList]$bus
[System.Collections.ArrayList]$button
[PSCustomObject]$vban [PSCustomObject]$vban
$command $command
# Constructor # Constructor
Remote ([String]$type) Remote ([String]$kind)
{ {
$this.type = $type $this.kind = $kind
$this.Setup() $this.Setup()
} }
[void] Setup() { [void] Setup() {
if(Setup_DLL) { if(Setup_DLL) {
Login -TYPE $this.type Login -KIND $this.kind
$this.button = Buttons $this.strip = Make_Strips
$this.strip = Strips $this.bus = Make_Buses
$this.bus = Buses $this.button = Make_Buttons
$this.vban = Vban $this.vban = Make_Vban
$this.command = Special $this.command = Make_Command
} }
else { Exit } else { Exit }
} }
@ -31,10 +31,26 @@ class Remote {
[void] Logout() { [void] Logout() {
Logout 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) { [void] Set_Multi([HashTable]$hash) {
Param_Set_Multi -HASH $hash Param_Set_Multi -HASH $hash
} }
[void] PDirty() { P_Dirty }
[void] MDirty() { M_Dirty }
} }
Function Get-RemoteBasic { Function Get-RemoteBasic {