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
|
. $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 }
|
||||||
}
|
}
|
||||||
@ -32,9 +32,25 @@ class Remote {
|
|||||||
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user