mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 13:20:47 +00:00
Update Voicemeeter.psm1
lower level setters/getters and polling functions now exposed
This commit is contained in:
parent
9714b7cc7d
commit
9162933ee8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user