appgain, appmute

- missing closing parenthesis in AppMute value string
- AppGain, AppMute overloads for index

prelim manual tests for potato pass
This commit is contained in:
pblivingston
2025-12-07 10:41:59 -05:00
parent 6d511d8aa6
commit 4189ac7721
3 changed files with 15 additions and 3 deletions

View File

@@ -182,8 +182,16 @@ class VirtualStrip : Strip {
$this.Setter('AppGain', "(`"$appname`", $gain)")
}
[void] AppGain ([int]$appindex, [single]$gain) {
$this.Setter("App[$appindex].Gain", $gain)
}
[void] AppMute ([string]$appname, [bool]$mutestate) {
$this.Setter('AppMute', "(`"$appname`", $(if ($mutestate) { 1 } else { 0 })")
$this.Setter('AppMute', "(`"$appname`", $(if ($mutestate) { 1 } else { 0 }))")
}
[void] AppMute ([int]$appindex, [bool]$mutestate) {
$this.Setter("App[$appindex].Mute", $mutestate)
}
}