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:
onyx-and-iris
2022-01-24 20:01:55 +00:00
parent 5b3a4e2b4f
commit 0a2733f865
3 changed files with 28 additions and 7 deletions

View File

@@ -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 {