mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 05:23: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 {
|
||||
|
||||
Reference in New Issue
Block a user