mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 05:23:32 +00:00
add load profiles, examples, update readme
add Get_Profiles and Set_Profile functions. Now possible to load many parameters from a psd1 config file. example config added add Config Files section to readme
This commit is contained in:
@@ -6,7 +6,8 @@ class Remote {
|
||||
[System.Collections.ArrayList]$bus
|
||||
[System.Collections.ArrayList]$button
|
||||
[PSCustomObject]$vban
|
||||
$command
|
||||
[Object]$command
|
||||
[Object]$profiles
|
||||
|
||||
# Constructor
|
||||
Remote ([String]$kind)
|
||||
@@ -18,7 +19,8 @@ class Remote {
|
||||
[void] Setup() {
|
||||
if(Setup_DLL) {
|
||||
Login -KIND $this.kind
|
||||
|
||||
|
||||
$this.profiles = Get_Profiles
|
||||
$this.strip = Make_Strips
|
||||
$this.bus = Make_Buses
|
||||
$this.button = Make_Buttons
|
||||
@@ -32,6 +34,10 @@ class Remote {
|
||||
Logout
|
||||
}
|
||||
|
||||
[void] Set_Profile([String]$config) {
|
||||
Set_Profile -DATA $this.profiles -CONF $config
|
||||
}
|
||||
|
||||
[Single] Getter([String]$param) {
|
||||
return Param_Get -PARAM $param
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user