mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-25 14:07:46 +00:00
bus trim, delay
- now pass Eq object reference to Channel - get remote from Eq - added kindOfEq check for trim and delay for safety, float pester tests for potato pass
This commit is contained in:
parent
797ab2e597
commit
c64d81c36f
10
lib/io.ps1
10
lib/io.ps1
@ -47,7 +47,7 @@ class IOEq : IRemote {
|
||||
|
||||
$this.channel = @()
|
||||
for ($ch = 0; $ch -lt $remote.kind.eq_ch[$this.kindOfEq]; $ch++) {
|
||||
$this.channel.Add([EqChannel]::new($ch, $remote, $this.identifier()))
|
||||
$this.channel.Add([EqChannel]::new($ch, $this))
|
||||
}
|
||||
}
|
||||
|
||||
@ -66,15 +66,15 @@ class EqChannel : IRemote {
|
||||
[System.Collections.ArrayList]$cell
|
||||
[string]$eqId
|
||||
|
||||
EqChannel ([int]$index, [Object]$remote, [string]$eqId) : base ($index, $remote) {
|
||||
$this.eqId = $eqId
|
||||
EqChannel ([int]$index, [Object]$eq) : base ($index, $eq.remote) {
|
||||
$this.eqId = $eq.identifier()
|
||||
|
||||
AddFloatMembers -PARAMS @('trim', 'delay')
|
||||
if ($eq.kindOfEq -eq 'Bus') { AddFloatMembers -PARAMS @('trim', 'delay') }
|
||||
|
||||
$this.cell = @()
|
||||
$cellCount = $this.remote.kind.cells
|
||||
for ($c = 0; $c -lt $cellCount; $c++) {
|
||||
$this.cell.Add([EqCell]::new($c, $remote, $this.identifier()))
|
||||
$this.cell.Add([EqCell]::new($c, $this.remote, $this.identifier()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user