mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +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:
parent
5b3a4e2b4f
commit
0a2733f865
@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
Before any minor/major patch is released all test units will be run to verify they pass.
|
||||
|
||||
## [Unreleased]
|
||||
- [x]
|
||||
- [x] Refactor Pester tests.
|
||||
- [x] Add more strip/bus properties.
|
||||
- [x] Ability to load custom profiles
|
||||
|
||||
## [2.2] - 2021-01-19
|
||||
### Added
|
||||
|
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,6 +31,12 @@ 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' `
|
||||
{
|
||||
@ -51,11 +57,6 @@ class Strip {
|
||||
)
|
||||
}
|
||||
|
||||
class PhysicalStrip : Strip {
|
||||
PhysicalStrip ([Int]$id) : base ($id) {
|
||||
}
|
||||
}
|
||||
|
||||
class VirtualStrip : Strip {
|
||||
VirtualStrip ([Int]$id) : base ($id) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user