mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 01:13:32 +00:00
add params to strip/bus.
a few strip/bus parameters added. comp, gate moved into physicalstrip subclass CHANGELOG updated to reflect recent changes
This commit is contained in:
18
lib/bus.ps1
18
lib/bus.ps1
@@ -9,6 +9,7 @@ class Bus {
|
||||
$this.id = $id
|
||||
|
||||
AddBoolMembers -PARAMS @('mono', 'mute')
|
||||
AddStringMembers -PARAMS @('label')
|
||||
AddFloatMembers -PARAMS @('gain')
|
||||
}
|
||||
|
||||
@@ -42,6 +43,23 @@ class Bus {
|
||||
class PhysicalBus : Bus {
|
||||
PhysicalBus ([Int]$id) : base ($id) {
|
||||
}
|
||||
hidden $_device = $($this | Add-Member ScriptProperty 'device' `
|
||||
{
|
||||
$this.Getter_String($this.cmd('device.name'))
|
||||
}`
|
||||
{
|
||||
return Write-Warning("ERROR: " + $this.cmd('device.name') + " is read only")
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_sr = $($this | Add-Member ScriptProperty 'sr' `
|
||||
{
|
||||
$this.Getter($this.cmd('device.sr'))
|
||||
}`
|
||||
{
|
||||
return Write-Warning("ERROR: " + $this.cmd('device.sr') + " is read only")
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
class VirtualBus : Bus {
|
||||
|
||||
@@ -9,8 +9,8 @@ class Strip {
|
||||
$this.id = $id
|
||||
|
||||
AddBoolMembers -PARAMS @('mono', 'solo', 'mute')
|
||||
AddFloatMembers -PARAMS @('gain', 'comp', 'gate')
|
||||
AddIntMembers -PARAMS @('limit')
|
||||
AddFloatMembers -PARAMS @('gain')
|
||||
AddStringMembers -PARAMS @('label')
|
||||
|
||||
AddChannelMembers
|
||||
@@ -31,7 +31,13 @@ class Strip {
|
||||
[String] cmd ($arg) {
|
||||
return "Strip[" + $this.id + "].$arg"
|
||||
}
|
||||
}
|
||||
|
||||
class PhysicalStrip : Strip {
|
||||
PhysicalStrip ([Int]$id) : base ($id) {
|
||||
AddFloatMembers -PARAMS @('comp', 'gate')
|
||||
}
|
||||
|
||||
hidden $_device = $($this | Add-Member ScriptProperty 'device' `
|
||||
{
|
||||
$this.Getter_String($this.cmd('device.name'))
|
||||
@@ -51,11 +57,6 @@ class Strip {
|
||||
)
|
||||
}
|
||||
|
||||
class PhysicalStrip : Strip {
|
||||
PhysicalStrip ([Int]$id) : base ($id) {
|
||||
}
|
||||
}
|
||||
|
||||
class VirtualStrip : Strip {
|
||||
VirtualStrip ([Int]$id) : base ($id) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user