mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
add gain,comp,limit to strip. Update tests.
Added gain, comp and limit attributes to strip class Updated pester unit tests to reflect changes. Update changelog
This commit is contained in:
@@ -48,7 +48,7 @@ Function Param_Set_Multi {
|
||||
Start-Sleep -m 50
|
||||
while(M_Dirty) { Start-Sleep -m 1 }
|
||||
|
||||
[string[]]$params = ($HASH | out-string -stream) -ne '' | select -Skip 2
|
||||
[string[]]$params = ($HASH | out-string -stream) -ne '' | Select-Object -Skip 2
|
||||
[String]$cmd = [String]::new(512)
|
||||
ForEach ($line in $params) {
|
||||
$line = $($line -replace '\s+', ' ')
|
||||
|
||||
@@ -41,7 +41,7 @@ class Bus {
|
||||
|
||||
hidden $_gain = $($this | Add-Member ScriptProperty 'gain' `
|
||||
{
|
||||
$this.Getter($this.cmd('gain'))
|
||||
[math]::Round($this.Getter($this.cmd('gain')), 1)
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
|
||||
@@ -131,13 +131,43 @@ class Strip {
|
||||
|
||||
hidden $_gain = $($this | Add-Member ScriptProperty 'gain' `
|
||||
{
|
||||
$this.Getter($this.cmd('gain'))
|
||||
[math]::Round($this.Getter($this.cmd('gain')), 1)
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._gain = $this.Setter($this.cmd('gain'), $arg)
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_comp = $($this | Add-Member ScriptProperty 'comp' `
|
||||
{
|
||||
[math]::Round($this.Getter($this.cmd('comp')), 1)
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._comp = $this.Setter($this.cmd('comp'), $arg)
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_gate = $($this | Add-Member ScriptProperty 'gate' `
|
||||
{
|
||||
[math]::Round($this.Getter($this.cmd('gate')), 1)
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._gate = $this.Setter($this.cmd('gate'), $arg)
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_limit = $($this | Add-Member ScriptProperty 'limit' `
|
||||
{
|
||||
[Int]$this.Getter($this.cmd('limit'))
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._limit = $this.Setter($this.cmd('limit'), $arg)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Function Strips {
|
||||
|
||||
Reference in New Issue
Block a user