mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
gainlayer, busmodes + mc,k added
gainlayers and busmodes added. mc, k added to virtual strips
This commit is contained in:
37
lib/meta.ps1
37
lib/meta.ps1
@@ -62,16 +62,16 @@ Function AddStringMembers() {
|
||||
}
|
||||
}
|
||||
|
||||
Function AddCommandMembers() {
|
||||
Function AddActionMembers() {
|
||||
param(
|
||||
[String[]]$PARAMS
|
||||
)
|
||||
[HashTable]$Signatures = @{}
|
||||
ForEach($param in $PARAMS) {
|
||||
# Define getter
|
||||
$Signatures["Getter"] = "`$this.Getter(`$this.cmd('{0}'))" -f $_
|
||||
$Signatures["Getter"] = "`$this.Setter(`$this.cmd('{0}'), `$true)" -f $param
|
||||
# Define setter
|
||||
$Signatures["Setter"] = "`$this.Setter(`$this.cmd('{0}'))" -f $_
|
||||
$Signatures["Setter"] = ""
|
||||
|
||||
Addmember
|
||||
}
|
||||
@@ -89,6 +89,37 @@ Function AddChannelMembers() {
|
||||
AddBoolMembers -PARAMS $channels
|
||||
}
|
||||
|
||||
Function AddGainlayerMembers() {
|
||||
[HashTable]$Signatures = @{}
|
||||
0..7 | ForEach-Object {
|
||||
# Define getter
|
||||
$Signatures["Getter"] = "`$this.Getter(`$this.cmd('gainlayer[{0}]'))" -f $_
|
||||
# Define setter
|
||||
$Signatures["Setter"] = "param ( [Single]`$arg )`n`$this.Setter(`$this.cmd('gainlayer[{0}]'), `$arg)" `
|
||||
-f $_
|
||||
$param = "gainlayer{0}" -f $_
|
||||
|
||||
Addmember
|
||||
}
|
||||
}
|
||||
|
||||
Function AddBusModeMembers() {
|
||||
param(
|
||||
[String[]]$PARAMS
|
||||
)
|
||||
[HashTable]$Signatures = @{}
|
||||
ForEach($param in $PARAMS) {
|
||||
# Define getter
|
||||
$Signatures["Getter"] = "[bool]`$this.Getter(`$this.cmd('mode.{0}'))" -f $param
|
||||
# Define setter
|
||||
$Signatures["Setter"] = "param ( [Single]`$arg )`n`$this.Setter(`$this.cmd('mode.{0}'), `$arg)" `
|
||||
-f $param
|
||||
$param = "mode_{0}" -f $param
|
||||
|
||||
Addmember
|
||||
}
|
||||
}
|
||||
|
||||
Function Addmember{
|
||||
$AddMemberParams = @{
|
||||
Name = $param
|
||||
|
||||
Reference in New Issue
Block a user